mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
ff6c88de0c
[web] Check users concurrently GitOrigin-RevId: 2bca99c5b6b84ddb71b0f96c412238ecffa0f953
18 lines
573 B
JavaScript
18 lines
573 B
JavaScript
// Run all the mongo queries on secondaries
|
|
process.env.MONGO_CONNECTION_STRING =
|
|
process.env.READ_ONLY_MONGO_CONNECTION_STRING
|
|
const SAMLEmailBatchCheck = require('../modules/overleaf-integration/app/src/SAML/SAMLEmailBatchCheck')
|
|
|
|
const startInstitutionId = parseInt(process.argv[2])
|
|
const emitDetailedData = process.argv.includes('--detailed-data')
|
|
|
|
SAMLEmailBatchCheck.promises
|
|
.checkEmails(startInstitutionId, emitDetailedData)
|
|
.then(result => {
|
|
console.table(result)
|
|
process.exit()
|
|
})
|
|
.catch(err => {
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|