From db58f4dda756ddaa45dfef52381818722204c770 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 2 Apr 2025 22:31:53 -0400 Subject: [PATCH] fix type error in NotificationService.ts --- packages/backend/src/core/NotificationService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts index 0b699a934e..0f05f5425d 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -165,7 +165,7 @@ export class NotificationService implements OnApplicationShutdown { redisId = (await this.redisClient.xadd( `notificationTimeline:${notifieeId}`, 'MAXLEN', '~', this.config.perUserNotificationsMaxCount.toString(), - this.toXListId(notification.id), + this.toXListId(notification.id, 0), 'data', JSON.stringify(notification)))!; } catch (e) { // The ID specified in XADD is equal or smaller than the target stream top item で失敗することがあるのでリトライ