Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 25, 2024
1 parent c7ba677 commit 9a1fe0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pds/src/api/com/atproto/server/createAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ const ensureUnusedHandleAndEmail = async (
.innerJoin('did_handle', 'did_handle.did', 'user_account.did')
.select(['did_handle.handle', 'user_account.email'])
.where('user_account.email', '=', email)
.where('did_handle.handle', '=', handle)
.orWhere('did_handle.handle', '=', handle)
.executeTakeFirst()
if (!res) return
if (res.email === email) {
Expand Down

0 comments on commit 9a1fe0a

Please sign in to comment.