@snowtop/ent 0.1.0-alpha86 → 0.1.0-alpha87
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.
- package/core/ent.js +1 -4
- package/package.json +1 -1
package/core/ent.js
CHANGED
|
@@ -254,10 +254,7 @@ async function loadEntXViaKey(viewer, key, options) {
|
|
|
254
254
|
// todo make this better
|
|
255
255
|
throw new Error(`${options.loaderFactory.name}: couldn't find row for value ${key}`);
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
// TODO every row.id needs to be audited...
|
|
259
|
-
// https://github.com/lolopinto/ent/issues/1064
|
|
260
|
-
const r = await getEntLoader(viewer, options).load(row.id);
|
|
257
|
+
const r = await applyPrivacyPolicyForRowAndStoreInEntLoader(viewer, row, options);
|
|
261
258
|
if (r instanceof ErrorWrapper) {
|
|
262
259
|
throw r.error;
|
|
263
260
|
}
|