mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Convert scripts that use institutions module
GitOrigin-RevId: d5819904f746c04fdb63971af93e8f8cc6f9fda8
This commit is contained in:
parent
e60297bd04
commit
3f0cf84318
2 changed files with 9 additions and 10 deletions
|
@ -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)
|
||||
})
|
9
services/web/scripts/process_lapsed_reconfirmations.mjs
Normal file
9
services/web/scripts/process_lapsed_reconfirmations.mjs
Normal 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)
|
||||
}
|
Loading…
Reference in a new issue