Skip to content

Commit

Permalink
fix: await upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar committed Nov 19, 2023
1 parent 01c4329 commit 6cf6468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class UserService {
}

async setFcmToken(userUuid: string, fcmToken: string) {
this.prismaService.fcmToken.upsert({
await this.prismaService.fcmToken.upsert({
where: { token: fcmToken },
create: {
token: fcmToken,
Expand Down

0 comments on commit 6cf6468

Please sign in to comment.