mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[web] add stats to process_notifications cron (#34049)
GitOrigin-RevId: ea6890f2726cba268f1e5eead0643d03757b8dff
This commit is contained in:
@@ -4,8 +4,12 @@ import { processNotifications } from '../modules/notifications/app/src/ProcessNo
|
||||
|
||||
async function main() {
|
||||
logger.info({}, 'Processing notifications...')
|
||||
await processNotifications()
|
||||
logger.info({}, 'Notifications processed successfully.')
|
||||
const { notificationsFound, notificationsReady, emailsSent } =
|
||||
await processNotifications()
|
||||
logger.info(
|
||||
{ notificationsFound, notificationsReady, emailsSent },
|
||||
'Notifications processed successfully.'
|
||||
)
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user