Function for processing notification queue (#29072)
* Function for processing notification queue * update collection name GitOrigin-RevId: 5de5d1d056acee4257fcdc930ad995345f5e0367
This commit is contained in:
committed by
Copybot
parent
71457d74cb
commit
48a3d6a10a
@@ -0,0 +1,17 @@
|
||||
import { processNotifications } from '../modules/notifications/app/src/ProcessNotifications.mjs'
|
||||
import { scriptRunner } from './lib/ScriptRunner.mjs'
|
||||
|
||||
async function main() {
|
||||
console.log('Processing notifications...')
|
||||
await processNotifications()
|
||||
console.log('Notifications processed successfully.')
|
||||
}
|
||||
|
||||
try {
|
||||
await scriptRunner(main)
|
||||
console.log('Done.')
|
||||
process.exit(0)
|
||||
} catch (error) {
|
||||
console.error({ error })
|
||||
process.exit(1)
|
||||
}
|
||||
Reference in New Issue
Block a user