Fix property fetching

This commit is contained in:
Schuyler Cebulskie
2016-09-26 23:34:47 -04:00
parent 4fe30aa4d3
commit c26fc49caf

View File

@@ -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 });
}