refactor: the invoice and subscription flow of user

This commit is contained in:
mahyargdz
2025-03-01 17:08:02 +03:30
parent ada9c153e6
commit 7c1d444c21
9 changed files with 87 additions and 86 deletions
@@ -107,7 +107,7 @@ export class NotificationsService {
//************************ */
async markAllAsRead(userId: string) {
await this.notificationRepository.delete({ recipient: { id: userId } });
await this.notificationRepository.update({ recipient: { id: userId } }, { isRead: true });
return {
message: CommonMessage.UPDATE_SUCCESS,
};