Skip to content

Commit

Permalink
also search by name
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Apr 15, 2024
1 parent 4627c82 commit 3430dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/logic/UserEmailSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function UserEmailSelector({
surreal
.query<[(User | EmailProfile)[]]>(
/* surql */ `
SELECT * FROM user WHERE id != $auth && $email && email ~ $email LIMIT $limit
SELECT * FROM user WHERE id != $auth && $email && (email ~ $email OR name ~ $email) LIMIT $limit
`,
{ email: input.toLowerCase(), limit }
)
Expand Down

0 comments on commit 3430dab

Please sign in to comment.