Small tweaks

This commit is contained in:
x032205
2025-08-31 23:10:27 -04:00
parent 542cc0f93c
commit 5b36f082e4
3 changed files with 2 additions and 14 deletions
@@ -51,8 +51,7 @@ export const notificationServiceFactory = ({
await userNotificationDAL.update( await userNotificationDAL.update(
{ {
id: notificationId, id: notificationId,
userId, userId
isRead: false
}, },
{ {
isRead: true isRead: true
@@ -2,17 +2,6 @@ export enum NotificationType {
ACCESS_APPROVAL_REQUEST = "access-approval-request" ACCESS_APPROVAL_REQUEST = "access-approval-request"
} }
export interface TUserNotification {
id: string;
userId: string;
type: string;
title: string;
body?: string | null;
link?: string | null;
isRead: boolean;
createdAt: Date;
}
export interface TCreateUserNotificationDTO { export interface TCreateUserNotificationDTO {
userId: string; userId: string;
type: NotificationType; type: NotificationType;
@@ -6,5 +6,5 @@ export interface TUserNotification {
body?: string | null; body?: string | null;
link?: string | null; link?: string | null;
isRead: boolean; isRead: boolean;
createdAt: Date; createdAt: string;
} }