From 384432d31e7bee6bf35d8af6b7165410303ffda4 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 6 Jul 2025 15:54:49 +0000 Subject: feat: Add per user storage quota --- packages/trpc/routers/admin.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/trpc/routers/admin.ts') diff --git a/packages/trpc/routers/admin.ts b/packages/trpc/routers/admin.ts index f46e17f2..5e169857 100644 --- a/packages/trpc/routers/admin.ts +++ b/packages/trpc/routers/admin.ts @@ -351,6 +351,10 @@ export const adminAppRouter = router({ updateData.bookmarkQuota = input.bookmarkQuota; } + if (input.storageQuota !== undefined) { + updateData.storageQuota = input.storageQuota; + } + if (Object.keys(updateData).length === 0) { throw new TRPCError({ code: "BAD_REQUEST", -- cgit v1.2.3-70-g09d2