overleaf/services/web/scripts/process_lapsed_reconfirmations.mjs
Andrew Rumble 3f0cf84318 Convert scripts that use institutions module
GitOrigin-RevId: d5819904f746c04fdb63971af93e8f8cc6f9fda8
2024-10-16 08:04:52 +00:00

9 lines
262 B
JavaScript

import InstitutionsReconfirmationHandler from '../modules/institutions/app/src/InstitutionsReconfirmationHandler.mjs'
try {
await InstitutionsReconfirmationHandler.processLapsed()
process.exit(0)
} catch (error) {
console.error(error)
process.exit(1)
}