From 6bfd9b657a146bc633ff07573828ddef9eee42ed Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 16 Jan 2025 22:53:17 +0000 Subject: [PATCH] refactor: improve logging formatting in SendSubscriberRemindersOnEventScheduled job --- .../SendSubscriberRemindersOnEventScheduled.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Worker/Jobs/ScheduledMaintenance/SendSubscriberRemindersOnEventScheduled.ts b/Worker/Jobs/ScheduledMaintenance/SendSubscriberRemindersOnEventScheduled.ts index 9cc748beb6..8ce272efa2 100644 --- a/Worker/Jobs/ScheduledMaintenance/SendSubscriberRemindersOnEventScheduled.ts +++ b/Worker/Jobs/ScheduledMaintenance/SendSubscriberRemindersOnEventScheduled.ts @@ -49,15 +49,15 @@ RunCron( logger.debug( "ScheduledMaintenance:SendSubscriberRemindersOnEventScheduled: Found " + - scheduledEvents.length + - " events", + scheduledEvents.length + + " events", ); for (const event of scheduledEvents) { try { logger.debug( "ScheduledMaintenance:SendSubscriberRemindersOnEventScheduled: Sending notification for event: " + - event.id, + event.id, ); const nextSubscriberNotificationAt: Date | null = @@ -69,7 +69,7 @@ RunCron( logger.debug( "ScheduledMaintenance:SendSubscriberRemindersOnEventScheduled: Next subscriber notification at: " + - nextSubscriberNotificationAt, + nextSubscriberNotificationAt, ); await ScheduledMaintenanceService.updateOneById({ @@ -85,17 +85,16 @@ RunCron( logger.debug( "ScheduledMaintenance:SendSubscriberRemindersOnEventScheduled: Notification sent for event: " + - event.id, + event.id, ); } catch (err) { logger.error( "ScheduledMaintenance:SendSubscriberRemindersOnEventScheduled: Error sending notification for event: " + - event.id, + event.id, ); logger.error(err); } - const scheduledMaintenanceFeedText: string = `**Reminder Notification Sent to Subscribers**: Reminder notification sent to status page subscribers because this scheduled maintenance is about to start.`;