mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [web] remove scriptRunner from a cron job script * disable eslint check * fix logger params, add error description GitOrigin-RevId: 60cfc32fc62d08283222bf7cdbe846b6c1d4796f
18 lines
492 B
JavaScript
18 lines
492 B
JavaScript
/* eslint-disable @overleaf/require-script-runner */
|
|
import logger from '@overleaf/logger'
|
|
import { processNotifications } from '../modules/notifications/app/src/ProcessNotifications.mjs'
|
|
|
|
async function main() {
|
|
logger.info({}, 'Processing notifications...')
|
|
await processNotifications()
|
|
logger.info({}, 'Notifications processed successfully.')
|
|
}
|
|
|
|
try {
|
|
await main()
|
|
process.exit(0)
|
|
} catch (error) {
|
|
logger.error({ error }, 'error processing notifications')
|
|
process.exit(1)
|
|
}
|