mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #21097 from overleaf/ls-scripts-to-esm-1
Migrate scripts folder to esm 1/x GitOrigin-RevId: 4a4bc9a161f144fdb40ce3f2a0a9313b36c6df81
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import SAMLEmailBatchCheck from '../modules/saas-authentication/app/src/SAML/SAMLEmailBatchCheck.js'
|
||||
import { ensureRunningOnMongoSecondaryWithTimeout } from './helpers/env_variable_helper.mjs'
|
||||
|
||||
ensureRunningOnMongoSecondaryWithTimeout(300000)
|
||||
|
||||
const startInstitutionId = parseInt(process.argv[2])
|
||||
const emitDetailedData = process.argv.includes('--detailed-data')
|
||||
|
||||
try {
|
||||
const result = await SAMLEmailBatchCheck.promises.checkEmails(
|
||||
startInstitutionId,
|
||||
emitDetailedData
|
||||
)
|
||||
console.table(result)
|
||||
process.exit()
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
}
|
||||
Reference in New Issue
Block a user