Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Use seconds intead of milliseconds in notification.ts to be consistent with other places.

天舟68b289b076c3
diff --git a/frontend/src/store/modules/notification.ts b/frontend/src/store/modules/notification.ts
index f1dd0fa826..356d55abba 100644
--- a/frontend/src/store/modules/notification.ts
+++ b/frontend/src/store/modules/notification.ts
@@ -1,10 +1,10 @@
+import { v1 as uuidv1 } from "uuid";
import {
Notification,
NotificationCreate,
NotificationFilter,
NotificationState,
} from "../../types";
-import { v1 as uuidv1 } from "uuid";
const state: () => NotificationState = () => ({
notificationByModule: new Map(),
@@ -30,7 +30,7 @@ const actions = {
pushNotification({ commit }: any, NotificationCreate: NotificationCreate) {
const notification: Notification = {
id: uuidv1(),
- createdTs: Date.now(),
+ createdTs: Date.now() / 1000,
...NotificationCreate,
};
commit("appendNotification", notification);