diff options
| author | Frank <[email protected]> | 2025-12-10 11:44:37 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-12-10 11:44:37 -0500 |
| commit | 744a7159e47a62924fb0dd64ecc2f95dfe804fc6 (patch) | |
| tree | e3e15a58759088d70a976e7accf39dbee325d9ee /packages/console | |
| parent | 80d1c628181ecf0254d1b60d2930b0ac007eb333 (diff) | |
| download | opencode-744a7159e47a62924fb0dd64ecc2f95dfe804fc6.tar.gz opencode-744a7159e47a62924fb0dd64ecc2f95dfe804fc6.zip | |
zen: sync
Diffstat (limited to 'packages/console')
| -rw-r--r-- | packages/console/app/src/routes/zen/util/handler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.ts index e34704f98..7d7767b8d 100644 --- a/packages/console/app/src/routes/zen/util/handler.ts +++ b/packages/console/app/src/routes/zen/util/handler.ts @@ -588,7 +588,7 @@ export async function handler( tx .update(KeyTable) .set({ timeUsed: sql`now()` }) - .where(eq(KeyTable.id, authInfo.apiKeyId)), + .where(and(eq(KeyTable.workspaceID, authInfo.workspaceID), eq(KeyTable.id, authInfo.apiKeyId))), ) } |
