mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 04:28:17 +00:00
Small tweaks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user