Skip to content

Commit

Permalink
[OTE-863] update username generation query (backport #2482) (#2483)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammed Affan <[email protected]>
  • Loading branch information
mergify[bot] and affanv14 authored Oct 14, 2024
1 parent 4b19a59 commit ca6c044
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 ca6c044

Please sign in to comment.