Преглед на файлове

Merge pull request #21288 from overleaf/ar-convert-modules-saas-authentication-to-es-modules

[web] Convert modules/saas-authentication to ES modules

GitOrigin-RevId: 5589bb2a7ad86da689994b6336cdac228de66c17
Andrew Rumble преди 1 година
родител
ревизия
df3be1bd5e

+ 1 - 1
services/web/scripts/backfill_users_sso_attribute.mjs

@@ -1,4 +1,4 @@
-import SAMLUserIdAttributeBatchHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdAttributeBatchHandler.js'
+import SAMLUserIdAttributeBatchHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdAttributeBatchHandler.mjs'
 
 const startInstitutionId = parseInt(process.argv[2])
 const endInstitutionId = parseInt(process.argv[3])

+ 1 - 1
services/web/scripts/check_saml_emails.mjs

@@ -1,4 +1,4 @@
-import SAMLEmailBatchCheck from '../modules/saas-authentication/app/src/SAML/SAMLEmailBatchCheck.js'
+import SAMLEmailBatchCheck from '../modules/saas-authentication/app/src/SAML/SAMLEmailBatchCheck.mjs'
 import { ensureRunningOnMongoSecondaryWithTimeout } from './helpers/env_variable_helper.mjs'
 
 ensureRunningOnMongoSecondaryWithTimeout(300000)

+ 1 - 1
services/web/scripts/sso_id_migration_check.mjs

@@ -1,5 +1,5 @@
 import { waitForDb } from '../app/src/infrastructure/mongodb.js'
-import SAMLUserIdMigrationHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdMigrationHandler.js'
+import SAMLUserIdMigrationHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdMigrationHandler.mjs'
 import { ensureRunningOnMongoSecondaryWithTimeout } from './helpers/env_variable_helper.mjs'
 
 ensureRunningOnMongoSecondaryWithTimeout(300000)

+ 1 - 1
services/web/scripts/sso_id_remove_not_migrated.mjs

@@ -1,5 +1,5 @@
 import { waitForDb } from '../app/src/infrastructure/mongodb.js'
-import SAMLUserIdMigrationHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdMigrationHandler.js'
+import SAMLUserIdMigrationHandler from '../modules/saas-authentication/app/src/SAML/SAMLUserIdMigrationHandler.mjs'
 import { ensureMongoTimeout } from './helpers/env_variable_helper.mjs'
 
 ensureMongoTimeout(300000)