Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit 3a408ad

Browse files
Bug fix
1 parent 5eca719 commit 3a408ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class AuthController {
3131
let user: User | undefined;
3232

3333
try {
34-
user = await Users.save({
34+
user = await Users.insert({
3535
email: req.body.email,
3636
password: await bcrypt.hash(req.body.password, 10)
3737
});

0 commit comments

Comments
 (0)