Skip to content

Commit

Permalink
Add new notification entity to database
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Dec 19, 2023
1 parent 426f942 commit c575d50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/firebase/fcm.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export class FcmService {
this.disableNotification(userId);
}
});
const newEntity = this.notificationRepository.create({
user: { id: userId },
body: body,
});
await this.notificationRepository.insert(newEntity);
}
} catch (error) {
return error;
Expand Down

0 comments on commit c575d50

Please sign in to comment.