Skip to content

Commit

Permalink
[OTE-863] update username generation query (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 authored Oct 14, 2024
1 parent d1ac09b commit 4dfde85
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ export async function getSubaccountsWithoutUsernames(
const queryString: string = `
SELECT id as "subaccountId"
FROM subaccounts
WHERE id NOT IN (
SELECT "subaccountId" FROM subaccount_usernames
)
AND subaccounts."subaccountNumber"=0
WHERE subaccounts."subaccountNumber" = 0
EXCEPT
SELECT "subaccountId" FROM subaccount_usernames;
`;

const result: {
Expand Down

0 comments on commit 4dfde85

Please sign in to comment.