Created
December 12, 2021 16:20
-
-
Save hansott/46730a2b1ea653c47f8bd6c27b9f1b26 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
export function getUserByEmail(mysql: MySQL, email: string) { | |
return await mysql.select( | |
"SELECT id, email, ... FROM users WHERE email = :email", | |
{ email: email } | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment