mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
9cc5dc968c
.../js/... -> .../src/... GitOrigin-RevId: ab509c633529440f05247d19c320ebb77d506768
17 lines
463 B
JavaScript
17 lines
463 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('Checking users of institution', institutionId)
|
|
|
|
InstitutionsManager.checkInstitutionUsers(institutionId, function(
|
|
error,
|
|
usersSummary
|
|
) {
|
|
if (error) {
|
|
console.log(error)
|
|
} else {
|
|
console.log(usersSummary)
|
|
}
|
|
process.exit()
|
|
})
|