convex-helpers 0.1.131 → 0.1.132
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/package.json
CHANGED
|
@@ -151,7 +151,9 @@ class WrapReader {
|
|
|
151
151
|
: // eslint-disable-next-line @convex-dev/explicit-table-ids -- tableName not available here
|
|
152
152
|
await this.db.get(id);
|
|
153
153
|
if (doc) {
|
|
154
|
-
if (tableName
|
|
154
|
+
if (tableName
|
|
155
|
+
? !(await this.predicate(tableName, doc))
|
|
156
|
+
: this.config.defaultPolicy === "deny") {
|
|
155
157
|
return null;
|
|
156
158
|
}
|
|
157
159
|
return doc;
|
|
@@ -252,7 +252,11 @@ class WrapReader<
|
|
|
252
252
|
: // eslint-disable-next-line @convex-dev/explicit-table-ids -- tableName not available here
|
|
253
253
|
await this.db.get(id);
|
|
254
254
|
if (doc) {
|
|
255
|
-
if (
|
|
255
|
+
if (
|
|
256
|
+
tableName
|
|
257
|
+
? !(await this.predicate(tableName, doc))
|
|
258
|
+
: this.config.defaultPolicy === "deny"
|
|
259
|
+
) {
|
|
256
260
|
return null;
|
|
257
261
|
}
|
|
258
262
|
return doc;
|