Merge pull request #29597 from overleaf/ar-last-features-esm-conversion

[web] last features esm conversion

GitOrigin-RevId: a35ab995bf654f1cdfe0e0062d8806761ecccf2d
This commit is contained in:
Andrew Rumble
2025-11-21 09:05:36 +00:00
committed by Copybot
parent d56b80508b
commit beb6f6d484
153 changed files with 632 additions and 623 deletions
@@ -2,12 +2,13 @@
import '../app/src/models/User.mjs'
import { batchedUpdateWithResultHandling } from '@overleaf/mongo-utils/batchedUpdate.js'
import { promiseMapWithLimit } from '@overleaf/promise-utils'
import { getQueue } from '../app/src/infrastructure/Queues.js'
import Queues from '../app/src/infrastructure/Queues.mjs'
import SubscriptionLocator from '../app/src/Features/Subscription/SubscriptionLocator.mjs'
import PlansLocator from '../app/src/Features/Subscription/PlansLocator.mjs'
import FeaturesHelper from '../app/src/Features/Subscription/FeaturesHelper.mjs'
import { db } from '../app/src/infrastructure/mongodb.js'
const { getQueue } = Queues
const WRITE_CONCURRENCY = parseInt(process.env.WRITE_CONCURRENCY || '10', 10)
const mixpanelSinkQueue = getQueue('analytics-mixpanel-sink')
@@ -3,7 +3,7 @@ import {
READ_PREFERENCE_SECONDARY,
} from '../app/src/infrastructure/mongodb.js'
import { promiseMapWithLimit } from '@overleaf/promise-utils'
import TokenGenerator from '../app/src/Features/TokenGenerator/TokenGenerator.js'
import TokenGenerator from '../app/src/Features/TokenGenerator/TokenGenerator.mjs'
import { batchedUpdate } from '@overleaf/mongo-utils/batchedUpdate.js'
const VERBOSE_LOGGING = process.env.VERBOSE_LOGGING === 'true'