Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Small tweaks

x0322055b36f082e4d3
diff --git a/backend/src/services/notification/notification-service.ts b/backend/src/services/notification/notification-service.ts
index 673d02a5ee..5e0f96add8 100644
--- a/backend/src/services/notification/notification-service.ts
+++ b/backend/src/services/notification/notification-service.ts
@@ -51,8 +51,7 @@ export const notificationServiceFactory = ({
await userNotificationDAL.update(
{
id: notificationId,
- userId,
- isRead: false
+ userId
},
{
isRead: true
diff --git a/backend/src/services/notification/notification-types.ts b/backend/src/services/notification/notification-types.ts
index ecf3cafcd9..2ac65cf381 100644
--- a/backend/src/services/notification/notification-types.ts
+++ b/backend/src/services/notification/notification-types.ts
@@ -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;
diff --git a/frontend/src/hooks/api/notifications/types.ts b/frontend/src/hooks/api/notifications/types.ts
index 8d5663a7c0..97552046c7 100644
--- a/frontend/src/hooks/api/notifications/types.ts
+++ b/frontend/src/hooks/api/notifications/types.ts
@@ -6,5 +6,5 @@ export interface TUserNotification {
body?: string | null;
link?: string | null;
isRead: boolean;
- createdAt: Date;
+ createdAt: string;
}