mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #8268 from overleaf/jel-script-check-emails
[web and v1] Script to check SAML emails GitOrigin-RevId: 9c411858cdd4c2cc41ce8a7d4aa4228b98654c85
This commit is contained in:
parent
ae207f7559
commit
d94478b4a8
1 changed files with 17 additions and 0 deletions
17
services/web/scripts/check_saml_emails.js
Normal file
17
services/web/scripts/check_saml_emails.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// 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)
|
||||||
|
})
|
Loading…
Reference in a new issue