diff options
| author | Kit Langton <[email protected]> | 2026-04-15 20:45:19 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-15 20:45:19 -0400 |
| commit | 3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0 (patch) | |
| tree | ecdd8fa222dd57683298409ef0b84cfd1d1ebc24 /packages/console/core | |
| parent | a554fad2327c68b2dc562a19e62a96415028b6d8 (diff) | |
| download | opencode-3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0.tar.gz opencode-3d6f90cb536ec30ff5091e1cbe3b1e619a93e1b0.zip | |
feat: add oxlint with correctness defaults (#22682)
Diffstat (limited to 'packages/console/core')
| -rw-r--r-- | packages/console/core/src/key.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/console/core/src/key.ts b/packages/console/core/src/key.ts index 688f19b3d..d1aae1524 100644 --- a/packages/console/core/src/key.ts +++ b/packages/console/core/src/key.ts @@ -24,11 +24,9 @@ export namespace Key { .innerJoin(AuthTable, and(eq(UserTable.accountID, AuthTable.accountID), eq(AuthTable.provider, "email"))) .where( and( - ...[ - eq(KeyTable.workspaceID, Actor.workspace()), + eq(KeyTable.workspaceID, Actor.workspace()), isNull(KeyTable.timeDeleted), ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), - ], ), ) .orderBy(sql`${KeyTable.name} DESC`), @@ -84,11 +82,9 @@ export namespace Key { }) .where( and( - ...[ - eq(KeyTable.id, input.id), + eq(KeyTable.id, input.id), eq(KeyTable.workspaceID, Actor.workspace()), ...(Actor.userRole() === "admin" ? [] : [eq(KeyTable.userID, Actor.userID())]), - ], ), ), ) |
