diff options
Diffstat (limited to 'packages/shared-server/src/services/quotaService.ts')
| -rw-r--r-- | packages/shared-server/src/services/quotaService.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/shared-server/src/services/quotaService.ts b/packages/shared-server/src/services/quotaService.ts index a09b76bf..bedda881 100644 --- a/packages/shared-server/src/services/quotaService.ts +++ b/packages/shared-server/src/services/quotaService.ts @@ -22,7 +22,10 @@ export class StorageQuotaError extends Error { export class QuotaService { // TODO: Use quota approval tokens for bookmark creation when // bookmark creation logic is in the model. - static async canCreateBookmark(db: DB, userId: string) { + static async canCreateBookmark( + db: DB | KarakeepDBTransaction, + userId: string, + ) { const user = await db.query.users.findFirst({ where: eq(users.id, userId), columns: { |
