|
|
@@ -1,7 +1,7 @@
|
|
|
import SAMLUserIdMigrationHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdMigrationHandler.mjs'
|
|
|
import { ensureRunningOnMongoSecondaryWithTimeout } from './helpers/env_variable_helper.mjs'
|
|
|
-import { scriptRunner } from './lib/ScriptRunner.mjs'
|
|
|
|
|
|
+// ScriptRunner can not be used when using this assertion
|
|
|
ensureRunningOnMongoSecondaryWithTimeout(300000)
|
|
|
|
|
|
const institutionId = parseInt(process.argv[2])
|
|
|
@@ -11,7 +11,7 @@ const emitUsers = process.argv.includes('--emit-users')
|
|
|
console.log('Checking SSO user ID migration for institution:', institutionId)
|
|
|
|
|
|
try {
|
|
|
- await scriptRunner(main)
|
|
|
+ await main()
|
|
|
} catch (error) {
|
|
|
console.error(error)
|
|
|
process.exit(1)
|