Skip to content

Commit f665b26

Browse files
committed
fix: Allow empty query results instead of throwing a permission denied error and bump package version.
1 parent 9500cbb commit f665b26

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

packages/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@forgebase/database",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

packages/database/src/database.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,6 @@ export class ForgeDatabase {
491491
}
492492
}
493493

494-
if (filtered.length === 0) {
495-
throw new PermissionDeniedError(
496-
`User does not have permission to query table "${tableName}"`,
497-
);
498-
}
499-
500494
return filtered as any;
501495
}
502496

0 commit comments

Comments
 (0)