aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared-server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared-server/src')
-rw-r--r--packages/shared-server/src/services/quotaService.ts5
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: {