mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: update password doesn't work
This commit is contained in:
parent
dc9ec429c6
commit
74e8956106
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export class AuthService {
|
||||||
|
|
||||||
const hash = await argon.hash(newPassword);
|
const hash = await argon.hash(newPassword);
|
||||||
|
|
||||||
this.prisma.user.update({
|
return await this.prisma.user.update({
|
||||||
where: { id: user.id },
|
where: { id: user.id },
|
||||||
data: { password: hash },
|
data: { password: hash },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue