Skip to content

Commit af16dc1

Browse files
committed
fix remove empty then
1 parent 2904c01 commit af16dc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/backend/src/queue/processors/CheckModeratorsActivityProcessorService.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class CheckModeratorsActivityProcessorService {
225225
for (const moderator of moderators) {
226226
const profile = moderatorProfiles.get(moderator.id);
227227
if (profile && profile.email && profile.emailVerified) {
228-
this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text).then();
228+
this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text);
229229
}
230230
}
231231

@@ -238,7 +238,7 @@ export class CheckModeratorsActivityProcessorService {
238238
systemWebhook,
239239
'inactiveModeratorsWarning',
240240
{ remainingTime: remainingTime },
241-
).then();
241+
);
242242
}
243243
}
244244

@@ -259,11 +259,11 @@ export class CheckModeratorsActivityProcessorService {
259259
forExistingUsers: true,
260260
needConfirmationToRead: true,
261261
userId: moderator.id,
262-
}).then();
262+
});
263263

264264
const profile = moderatorProfiles.get(moderator.id);
265265
if (profile && profile.email && profile.emailVerified) {
266-
this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text).then();
266+
this.emailService.sendEmail(profile.email, mail.subject, mail.html, mail.text);
267267
}
268268
}
269269

@@ -276,7 +276,7 @@ export class CheckModeratorsActivityProcessorService {
276276
systemWebhook,
277277
'inactiveModeratorsInvitationOnlyChanged',
278278
{},
279-
).then();
279+
);
280280
}
281281
}
282282

0 commit comments

Comments
 (0)