mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:03:43 -05:00
321d66f804
.../js/... -> .../src/... GitOrigin-RevId: d93cc4c34010ea7b318778a456e59bd702faa739
14 lines
445 B
JavaScript
14 lines
445 B
JavaScript
const InstitutionsManager = require('../app/src/Features/Institutions/InstitutionsManager')
|
|
|
|
const institutionId = parseInt(process.argv[2])
|
|
if (isNaN(institutionId)) throw new Error('No institution id')
|
|
console.log('Upgrading users of institution', institutionId)
|
|
|
|
InstitutionsManager.upgradeInstitutionUsers(institutionId, function(error) {
|
|
if (error) {
|
|
console.log(error)
|
|
} else {
|
|
console.log('DONE 👌')
|
|
}
|
|
process.exit()
|
|
})
|