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