change user model to typescript

This commit is contained in:
canove
2020-09-14 16:47:43 -03:00
parent 60b12cbc9f
commit eba3553a2d
5 changed files with 27 additions and 48 deletions

View File

@@ -42,7 +42,7 @@ const CreateUserService = async ({
const user = User.create({
email,
passwordHash: password,
password,
name,
profile
});