From c26fc49cafaa6eef8ac22c3a9b20b512e3789c46 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Mon, 26 Sep 2016 23:34:47 -0400 Subject: [PATCH] Fix property fetching --- src/sharding/ShardUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharding/ShardUtil.js b/src/sharding/ShardUtil.js index bb0641fe2..a2319d322 100644 --- a/src/sharding/ShardUtil.js +++ b/src/sharding/ShardUtil.js @@ -23,7 +23,7 @@ class ShardUtil { } } else if (message._fetchProp) { const props = message._fetchProp.split('.'); - let value = this; // eslint-disable-line consistent-this + let value = this.client; for (const prop of props) value = value[prop]; process.send({ _fetchProp: message._fetchProp, _fetchPropValue: value }); }