Skip to content

Commit 4387fc3

Browse files
authored
fix(oso-app): only get api keys that haven't been deleted (#4009)
1 parent 31f6423 commit 4387fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/frontend/lib/clients/oso-app/oso-app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ class OsoAppClient {
137137
const { data, error } = await this.supabaseClient
138138
.from("api_keys")
139139
.select("id, name, user_id, created_at, org_id")
140-
.eq("org_id", orgId);
140+
.eq("org_id", orgId)
141+
.is("deleted_at", null);
141142
if (error) {
142143
throw error;
143144
} else if (!data) {

0 commit comments

Comments
 (0)