From 4227b89ebcab636a7e7f8e2bbbd560ac5081a2c4 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 10 Oct 2025 14:54:49 -0400 Subject: wip: zen --- packages/console/core/src/user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/console/core/src') diff --git a/packages/console/core/src/user.ts b/packages/console/core/src/user.ts index 1580783fd..63877150e 100644 --- a/packages/console/core/src/user.ts +++ b/packages/console/core/src/user.ts @@ -58,8 +58,9 @@ export namespace User { z.object({ email: z.string(), role: z.enum(UserRole), + monthlyLimit: z.number().nullable().optional(), }), - async ({ email, role }) => { + async ({ email, role, monthlyLimit }) => { Actor.assertAdmin() const workspaceID = Actor.workspace() @@ -80,10 +81,12 @@ export namespace User { }), workspaceID, role, + monthlyLimit, }) .onDuplicateKeyUpdate({ set: { role, + monthlyLimit, timeDeleted: null, }, }), -- cgit v1.2.3