From 2f2a8e537d03cea8d43b1fa84b8f1a48934f5d63 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 21 Mar 2021 22:26:45 +0900 Subject: [PATCH] fix bug --- src/models/repositories/notification.ts | 2 +- src/services/create-notification.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/repositories/notification.ts b/src/models/repositories/notification.ts index 102715587..986ddb1d4 100644 --- a/src/models/repositories/notification.ts +++ b/src/models/repositories/notification.ts @@ -16,7 +16,7 @@ export class NotificationRepository extends Repository { public async pack( src: Notification['id'] | Notification, options: { - _hintForEachNotes_: { + _hintForEachNotes_?: { emojis: Emoji[] | null; myReactions: Map; }; diff --git a/src/services/create-notification.ts b/src/services/create-notification.ts index 6cd116040..dedb8eac8 100644 --- a/src/services/create-notification.ts +++ b/src/services/create-notification.ts @@ -30,7 +30,7 @@ export async function createNotification( ...data } as Partial); - const packed = await Notifications.pack(notification); + const packed = await Notifications.pack(notification, {}); // Publish notification event publishMainStream(notifieeId, 'notification', packed);