mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[web] add email notifications dry run split test (#34653)
GitOrigin-RevId: 62f73ce3850b994bf2a4a054edd6fa62134213a9
This commit is contained in:
@@ -4,10 +4,21 @@ import { processNotifications } from '../modules/notifications/app/src/ProcessNo
|
||||
|
||||
async function main() {
|
||||
logger.info({}, 'Processing notifications...')
|
||||
const { notificationsFound, notificationsReady, emailsSent } =
|
||||
await processNotifications()
|
||||
const {
|
||||
notificationsFound,
|
||||
notificationsReady,
|
||||
emailsSent,
|
||||
dryRunProcessed,
|
||||
dryRunWouldHaveSent,
|
||||
} = await processNotifications()
|
||||
logger.info(
|
||||
{ notificationsFound, notificationsReady, emailsSent },
|
||||
{
|
||||
notificationsFound,
|
||||
notificationsReady,
|
||||
emailsSent,
|
||||
dryRunProcessed,
|
||||
dryRunWouldHaveSent,
|
||||
},
|
||||
'Notifications processed successfully.'
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user