summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/CreateNotificationService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-04 10:02:03 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-02-04 10:02:03 +0900
commitb7522f69e76f5b48c0b6a8fadcf5377c455988d6 (patch)
treec3a538815ded8368955b372dddc5b8d22c2c3e69 /packages/backend/src/core/CreateNotificationService.ts
parent13.3.1 (diff)
downloadsharkey-b7522f69e76f5b48c0b6a8fadcf5377c455988d6.tar.gz
sharkey-b7522f69e76f5b48c0b6a8fadcf5377c455988d6.tar.bz2
sharkey-b7522f69e76f5b48c0b6a8fadcf5377c455988d6.zip
fix typo
Diffstat (limited to 'packages/backend/src/core/CreateNotificationService.ts')
-rw-r--r--packages/backend/src/core/CreateNotificationService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/CreateNotificationService.ts b/packages/backend/src/core/CreateNotificationService.ts
index f376b7b9cf..cd47844a75 100644
--- a/packages/backend/src/core/CreateNotificationService.ts
+++ b/packages/backend/src/core/CreateNotificationService.ts
@@ -26,7 +26,7 @@ export class CreateNotificationService {
private notificationEntityService: NotificationEntityService,
private idService: IdService,
- private globalEventServie: GlobalEventService,
+ private globalEventService: GlobalEventService,
private pushNotificationService: PushNotificationService,
) {
}
@@ -60,7 +60,7 @@ export class CreateNotificationService {
const packed = await this.notificationEntityService.pack(notification, {});
// Publish notification event
- this.globalEventServie.publishMainStream(notifieeId, 'notification', packed);
+ this.globalEventService.publishMainStream(notifieeId, 'notification', packed);
// 2秒経っても(今回作成した)通知が既読にならなかったら「未読の通知がありますよ」イベントを発行する
setTimeout(async () => {
@@ -77,7 +77,7 @@ export class CreateNotificationService {
}
//#endregion
- this.globalEventServie.publishMainStream(notifieeId, 'unreadNotification', packed);
+ this.globalEventService.publishMainStream(notifieeId, 'unreadNotification', packed);
this.pushNotificationService.pushNotification(notifieeId, 'notification', packed);
if (type === 'follow') this.emailNotificationFollow(notifieeId, await this.usersRepository.findOneByOrFail({ id: data.notifierId! }));