mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 11:34:15 -05:00
18 lines
500 B
JavaScript
18 lines
500 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 emitDetailedData = process.argv.includes('--detailed-data')
|
||
|
|
||
|
SAMLEmailBatchCheck.promises
|
||
|
.checkEmails(emitDetailedData)
|
||
|
.then(result => {
|
||
|
console.table(result)
|
||
|
process.exit()
|
||
|
})
|
||
|
.catch(err => {
|
||
|
console.error(err)
|
||
|
process.exit(1)
|
||
|
})
|