mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:23:49 -05:00
4997b7f1ee
[web] Rename overleaf-integration module to saas-authentication GitOrigin-RevId: 7d69e06a19da9855fa9a0962114ad97b45ad8875
19 lines
616 B
JavaScript
19 lines
616 B
JavaScript
process.env.MONGO_SOCKET_TIMEOUT = '300000'
|
|
// Run all the mongo queries on secondaries
|
|
process.env.MONGO_CONNECTION_STRING =
|
|
process.env.READ_ONLY_MONGO_CONNECTION_STRING
|
|
const SAMLEmailBatchCheck = require('../modules/saas-authentication/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)
|
|
})
|