Last active
June 5, 2021 01:49
-
-
Save mosufy/de5f2993ba3a2a34c8e08fc1f5e86d1f 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 { validateEmail } from './validateEmail'; | |
export const createUser = async (params) => { | |
validateEmail(params.email); | |
await insertUser(params); | |
} | |
export const updateUser = params => { | |
validateEmail(params.email); | |
await updateUser(params); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment