Skip to content

Commit

Permalink
fix: use toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
GanghyeonSeo committed Jul 7, 2024
1 parent 6153156 commit a07075c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notice/notice.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -274,7 +274,7 @@ export class NoticeService {
}

async deleteNotice(id: number, userUuid: string): Promise<void> {
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();
Expand Down

0 comments on commit a07075c

Please sign in to comment.