we have similar SQL queries in search/users.js and creators/account-creator.js. we should just use searchForUser everywhere
Details
Details
- Reviewers
atul ashoat - Commits
- rCOMM4d3425cfeeaf: [keyserver] dedup username db queries
tried creating a user with a username that already exists. it failed, as expected
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Talked to @varun offline. We have similar code in keyserver/src/search/users.js and keyserver/src/creators/account-creator.js... would be good to dedup all of it. searchForUser is probably good for what we need in all three cases