@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.
Files changed (2) hide show
  1. package/core/ent.js +1 -4
  2. 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
- // this should have primed the other cache so there isn't a database query
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha86",
3
+ "version": "0.1.0-alpha87",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",