From 74e895610642552c98c0015d0f8347735aaed457 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 10 Jan 2023 12:29:38 +0100 Subject: [PATCH] fix: update password doesn't work --- backend/src/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index b6b447e..e309589 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -87,7 +87,7 @@ export class AuthService { const hash = await argon.hash(newPassword); - this.prisma.user.update({ + return await this.prisma.user.update({ where: { id: user.id }, data: { password: hash }, });