mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
b311f997aa
add script to check all if users on institution are upgraded GitOrigin-RevId: 903f3a65fc038862178a82f43d97a5a4630cf470
17 lines
462 B
JavaScript
17 lines
462 B
JavaScript
const InstitutionsManager = require('../app/js/Features/Institutions/InstitutionsManager')
|
|
|
|
const institutionId = parseInt(process.argv[2])
|
|
if (isNaN(institutionId)) throw new Error('No institution id')
|
|
console.log('Checking users of institution', institutionId)
|
|
|
|
InstitutionsManager.checkInstitutionUsers(institutionId, function(
|
|
error,
|
|
usersSummary
|
|
) {
|
|
if (error) {
|
|
console.log(error)
|
|
} else {
|
|
console.log(usersSummary)
|
|
}
|
|
process.exit()
|
|
})
|