From a07075ca9940e1d13ce089fe9de169e1b628d9d1 Mon Sep 17 00:00:00 2001 From: GanghyeonSeo Date: Sun, 7 Jul 2024 23:35:53 +0900 Subject: [PATCH] fix: use toString() --- src/notice/notice.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notice/notice.service.ts b/src/notice/notice.service.ts index 335741c..24e986c 100644 --- a/src/notice/notice.service.ts +++ b/src/notice/notice.service.ts @@ -172,7 +172,7 @@ export class NoticeService { imageUrl: notice.imageUrls ? notice.imageUrls[0] : undefined, }; - await this.fcmService.deleteMessageJobIdPattern(String(notice.id)); + await this.fcmService.deleteMessageJobIdPattern(notice.id.toString()); await this.fcmService.postMessage( this.convertNotificationBodyToString(notification), FcmTargetUser.All, @@ -274,7 +274,7 @@ export class NoticeService { } async deleteNotice(id: number, userUuid: string): Promise { - await this.fcmService.deleteMessageJobIdPattern(String(id)); + await this.fcmService.deleteMessageJobIdPattern(id.toString()); const notice = await this.noticeRepository.getNotice(id); if (notice.author.uuid !== userUuid) { throw new ForbiddenException();