Convert scripts that use institutions module

GitOrigin-RevId: d5819904f746c04fdb63971af93e8f8cc6f9fda8
This commit is contained in:
Andrew Rumble 2024-10-09 10:40:11 +01:00 committed by Copybot
parent e60297bd04
commit 3f0cf84318
2 changed files with 9 additions and 10 deletions

View file

@ -1,10 +0,0 @@
const InstitutionsReconfirmationHandler = require('../modules/institutions/app/src/InstitutionsReconfirmationHandler')
InstitutionsReconfirmationHandler.processLapsed()
.then(() => {
process.exit(0)
})
.catch(error => {
console.error(error)
process.exit(1)
})

View file

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