refactor: the invoice and subscription flow of user
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user