From 90dfedf0989162194845db1104dea8f5ab0ed006 Mon Sep 17 00:00:00 2001 From: knuthtimo-lab Date: Mon, 27 Jul 2026 18:29:06 +0200 Subject: [PATCH] fix --- src/app/(main)/api/qrs/[id]/route.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/(main)/api/qrs/[id]/route.ts b/src/app/(main)/api/qrs/[id]/route.ts index a5bef49..fcd8260 100644 --- a/src/app/(main)/api/qrs/[id]/route.ts +++ b/src/app/(main)/api/qrs/[id]/route.ts @@ -11,6 +11,10 @@ const updateQRSchema = z.object({ content: z.any().optional(), tags: z.array(z.string()).optional(), style: z.any().optional(), + // Pausing frees a dynamic code slot without deleting the code or its scan + // history. Used by the upgrade modal so hitting the limit has an exit that + // costs nothing and destroys nothing. + status: z.enum(['ACTIVE', 'PAUSED']).optional(), }); // GET /api/qrs/[id] - Get a single QR code