mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #1444 from sharelatex/ta-ns-check-institution-users
add script to check all if users on institution are upgraded GitOrigin-RevId: 903f3a65fc038862178a82f43d97a5a4630cf470
This commit is contained in:
committed by
sharelatex
parent
7739e0ece8
commit
b311f997aa
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
})
|
||||
Reference in New Issue
Block a user