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(
{
id: notificationId,
userId,
isRead: false
userId
},
{
isRead: true
@@ -2,17 +2,6 @@ export enum NotificationType {
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 {
userId: string;
type: NotificationType;
@@ -6,5 +6,5 @@ export interface TUserNotification {
body?: string | null;
link?: string | null;
isRead: boolean;
createdAt: Date;
createdAt: string;
}