diff --git a/services/web/scripts/check_institution_users.js b/services/web/scripts/check_institution_users.js index 44451f2eb0..8c121f1cfc 100644 --- a/services/web/scripts/check_institution_users.js +++ b/services/web/scripts/check_institution_users.js @@ -1,3 +1,4 @@ +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 diff --git a/services/web/scripts/check_saml_emails.js b/services/web/scripts/check_saml_emails.js index 481a3c1f0a..6146b8af9c 100644 --- a/services/web/scripts/check_saml_emails.js +++ b/services/web/scripts/check_saml_emails.js @@ -1,3 +1,4 @@ +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 diff --git a/services/web/scripts/sso_id_migration_check.js b/services/web/scripts/sso_id_migration_check.js index f0ab47e8ea..a8ed8c1890 100644 --- a/services/web/scripts/sso_id_migration_check.js +++ b/services/web/scripts/sso_id_migration_check.js @@ -1,3 +1,4 @@ +process.env.MONGO_SOCKET_TIMEOUT = '300000' process.env.MONGO_CONNECTION_STRING = process.env.READ_ONLY_MONGO_CONNECTION_STRING diff --git a/services/web/scripts/sso_id_remove_not_migrated.js b/services/web/scripts/sso_id_remove_not_migrated.js index f6924c8336..031728fa8f 100644 --- a/services/web/scripts/sso_id_remove_not_migrated.js +++ b/services/web/scripts/sso_id_remove_not_migrated.js @@ -1,3 +1,4 @@ +process.env.MONGO_SOCKET_TIMEOUT = '300000' const { waitForDb } = require('../app/src/infrastructure/mongodb') const SAMLUserIdMigrationHandler = require('../modules/overleaf-integration/app/src/SAML/SAMLUserIdMigrationHandler')