From af16dc12d3bc29139c9959e63acdff7833f20534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8A=E3=81=95=E3=82=80=E3=81=AE=E3=81=B2=E3=81=A8?= <46447427+samunohito@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:28:11 +0900 Subject: [PATCH] fix remove empty then --- .../CheckModeratorsActivityProcessorService.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/queue/processors/CheckModeratorsActivityProcessorService.ts b/packages/backend/src/queue/processors/CheckModeratorsActivityProcessorService.ts index 002c7a878f74..87183cb34218 100644 --- a/packages/backend/src/queue/processors/CheckModeratorsActivityProcessorService.ts +++ b/packages/backend/src/queue/processors/CheckModeratorsActivityProcessorService.ts @@ -225,7 +225,7 @@ export class CheckModeratorsActivityProcessorService { for (const moderator of moderators) { const profile = moderatorProfiles.get(moderator.id); if (profile && profile.email && profile.emailVerified) { - this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text).then(); + this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text); } } @@ -238,7 +238,7 @@ export class CheckModeratorsActivityProcessorService { systemWebhook, 'inactiveModeratorsWarning', { remainingTime: remainingTime }, - ).then(); + ); } } @@ -259,11 +259,11 @@ export class CheckModeratorsActivityProcessorService { forExistingUsers: true, needConfirmationToRead: true, userId: moderator.id, - }).then(); + }); const profile = moderatorProfiles.get(moderator.id); if (profile && profile.email && profile.emailVerified) { - this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text).then(); + this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text); } } @@ -276,7 +276,7 @@ export class CheckModeratorsActivityProcessorService { systemWebhook, 'inactiveModeratorsInvitationOnlyChanged', {}, - ).then(); + ); } }