Skip to content

Commit

Permalink
fix: #1666: admin_search should return users without tokens (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
trigramdev9 authored Mar 19, 2022
1 parent 3cffc9b commit 13363e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/api/db/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ select
akh.reason as reason,
akh.status as status
from public.user u
right join auth_key ak on ak.user_id = u.id
full outer join (select * from auth_key_history where deleted_at is null) as akh on akh.auth_key_id = ak.id
where ak.deleted_at is NULL or ak.deleted_at is not NULL and akh.status is not NULL;
full outer join auth_key ak on ak.user_id = u.id
full outer join (select * from auth_key_history where deleted_at is null) as akh on akh.auth_key_id = ak.id;

CREATE INDEX IF NOT EXISTS upload_content_cid_idx ON upload (content_cid);
CREATE INDEX IF NOT EXISTS upload_source_cid_idx ON upload (source_cid);
Expand Down

0 comments on commit 13363e7

Please sign in to comment.