Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
aliosmandev committed Oct 5, 2023
1 parent 49f3531 commit 9f7a890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ model Dictionaries {

model Users {
id String @id @default(cuid())
email String @db.VarChar(100000)
email String @db.Text @db.Char(255)
username String?
name String?
passwordHash String?
Expand Down
8 changes: 2 additions & 6 deletions src/modules/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export const SignUp = async (req: FastifyRequest<{ Body: SignUpValidationType }>

// await sendMail(email as string, i18next.t("welcome_user"), render(reactEmail));

try {
await prisma.users.create({
data: {
avatar_url: `https://wordigo.app/api/dynamic-avatar?username=${username}?size=256`,
Expand All @@ -72,11 +71,8 @@ export const SignUp = async (req: FastifyRequest<{ Body: SignUpValidationType }>
passwordSalt: passwordHashAndSalt.salt,
nativeLanguage,
provider: Providers.Local,
}})
} catch (err) {
console.log(err);

}
},
})

return reply.send(successResult(null, i18next.t(messages.success)))
}
Expand Down

0 comments on commit 9f7a890

Please sign in to comment.