diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-16 00:46:18 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-16 00:46:18 +0000 |
| commit | ac2fa668cfef16935317e8f0fa3a6b709c1f6fdc (patch) | |
| tree | ad431baf7e3f39ec6abe24f702ab6c6aa386ff72 /packages/console/core | |
| parent | 3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0 (diff) | |
| download | opencode-ac2fa668cfef16935317e8f0fa3a6b709c1f6fdc.tar.gz opencode-ac2fa668cfef16935317e8f0fa3a6b709c1f6fdc.zip | |
chore: generate
Diffstat (limited to 'packages/console/core')
| -rw-r--r-- | packages/console/core/src/key.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/console/core/src/key.ts b/packages/console/core/src/key.ts index d1aae1524..aef4298c9 100644 --- a/packages/console/core/src/key.ts +++ b/packages/console/core/src/key.ts @@ -25,8 +25,8 @@ export namespace Key { .where( and( eq(KeyTable.workspaceID, Actor.workspace()), - isNull(KeyTable.timeDeleted), - ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), + isNull(KeyTable.timeDeleted), + ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), ), ) .orderBy(sql`${KeyTable.name} DESC`), @@ -83,8 +83,8 @@ export namespace Key { .where( and( eq(KeyTable.id, input.id), - eq(KeyTable.workspaceID, Actor.workspace()), - ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), + eq(KeyTable.workspaceID, Actor.workspace()), + ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), ), ), ) |
