Skip to content

Commit

Permalink
fix remove empty then
Browse files Browse the repository at this point in the history
  • Loading branch information
samunohito committed Oct 13, 2024
1 parent 2904c01 commit af16dc1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -238,7 +238,7 @@ export class CheckModeratorsActivityProcessorService {
systemWebhook,
'inactiveModeratorsWarning',
{ remainingTime: remainingTime },
).then();
);
}
}

Expand All @@ -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);
}
}

Expand All @@ -276,7 +276,7 @@ export class CheckModeratorsActivityProcessorService {
systemWebhook,
'inactiveModeratorsInvitationOnlyChanged',
{},
).then();
);
}
}

Expand Down

0 comments on commit af16dc1

Please sign in to comment.