|
@@ -4,10 +4,21 @@ import { processNotifications } from '../modules/notifications/app/src/ProcessNo
|
|
|
|
|
|
|
|
async function main() {
|
|
async function main() {
|
|
|
logger.info({}, 'Processing notifications...')
|
|
logger.info({}, 'Processing notifications...')
|
|
|
- const { notificationsFound, notificationsReady, emailsSent } =
|
|
|
|
|
- await processNotifications()
|
|
|
|
|
|
|
+ const {
|
|
|
|
|
+ notificationsFound,
|
|
|
|
|
+ notificationsReady,
|
|
|
|
|
+ emailsSent,
|
|
|
|
|
+ dryRunProcessed,
|
|
|
|
|
+ dryRunWouldHaveSent,
|
|
|
|
|
+ } = await processNotifications()
|
|
|
logger.info(
|
|
logger.info(
|
|
|
- { notificationsFound, notificationsReady, emailsSent },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ notificationsFound,
|
|
|
|
|
+ notificationsReady,
|
|
|
|
|
+ emailsSent,
|
|
|
|
|
+ dryRunProcessed,
|
|
|
|
|
+ dryRunWouldHaveSent,
|
|
|
|
|
+ },
|
|
|
'Notifications processed successfully.'
|
|
'Notifications processed successfully.'
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|