Răsfoiți Sursa

modifying import of generateInitialPreNotifyProps

WNomunomu 2 ani în urmă
părinte
comite
a69e69b4f0
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      apps/app/src/server/service/in-app-notification.ts

+ 2 - 2
apps/app/src/server/service/in-app-notification.ts

@@ -20,7 +20,7 @@ import Crowi from '../crowi';
 import { RoomPrefix, getRoomNameWithId } from '../util/socket-io-helpers';
 
 import { generateSnapshot } from './in-app-notification/in-app-notification-utils';
-import { generateInitialPreNotifyProps, type PreNotify } from './preNotify';
+import { preNotifyService, type PreNotify } from './preNotify';
 
 
 const { STATUS_UNREAD, STATUS_UNOPENED, STATUS_OPENED } = InAppNotificationStatuses;
@@ -206,7 +206,7 @@ export default class InAppNotificationService {
     const snapshot = generateSnapshot(targetModel, target);
 
     if (shouldNotification) {
-      const props = generateInitialPreNotifyProps();
+      const props = preNotifyService.generateInitialPreNotifyProps();
 
       await preNotify(props);