diff options
| author | Frank <[email protected]> | 2025-10-10 14:54:49 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-10-10 14:54:49 -0400 |
| commit | 4227b89ebcab636a7e7f8e2bbbd560ac5081a2c4 (patch) | |
| tree | a72d46d1edae9dbd437039141a6b4e175d1284e5 /packages/console/core/src | |
| parent | ee846235f2c375560ab6095d2481351032f55a0b (diff) | |
| download | opencode-4227b89ebcab636a7e7f8e2bbbd560ac5081a2c4.tar.gz opencode-4227b89ebcab636a7e7f8e2bbbd560ac5081a2c4.zip | |
wip: zen
Diffstat (limited to 'packages/console/core/src')
| -rw-r--r-- | packages/console/core/src/user.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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, }, }), |
