@snowtop/ent 0.1.0-alpha43 → 0.1.0-alpha44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,8 +187,7 @@ class ObjectLoaderFactory {
|
|
|
187
187
|
constructor(options) {
|
|
188
188
|
this.options = options;
|
|
189
189
|
this.toPrime = [];
|
|
190
|
-
|
|
191
|
-
let instanceKey = "";
|
|
190
|
+
let instanceKey = options.instanceKey || "";
|
|
192
191
|
if (typeof this.options.clause === "function") {
|
|
193
192
|
if (!options.instanceKey) {
|
|
194
193
|
throw new Error(`need to pass an instanceKey to ObjectLoader if clause is a function`);
|