Created
June 5, 2021 01:31
-
-
Save mosufy/e4bef0564078c83d7f1aa41f5ed54209 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import db from 'Db'; | |
export const checkUsernameExists = username => { | |
return db.select('*') | |
->from('users') | |
->where('username', username) | |
->first(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment