mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Merge pull request #29928 from overleaf/ar-last-infrastructure-conversions
[web] last infrastructure conversions GitOrigin-RevId: ad1aff9b7df0610ed0303157d9e2c8032f32c02b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import minimist from 'minimist'
|
||||
import { db, ObjectId } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { db, ObjectId } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
|
||||
async function main() {
|
||||
const argv = minimist(process.argv.slice(2), {
|
||||
|
||||
@@ -2,7 +2,7 @@ import mongodb from 'mongodb-legacy'
|
||||
import {
|
||||
connectionPromise,
|
||||
db,
|
||||
} from '../../../app/src/infrastructure/mongodb.js'
|
||||
} from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
|
||||
const { ObjectId } = mongodb
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import RedisWrapper from '../../../app/src/infrastructure/RedisWrapper.js'
|
||||
import RedisWrapper from '../../../app/src/infrastructure/RedisWrapper.mjs'
|
||||
const rclient = RedisWrapper.client('health_check')
|
||||
rclient.on('error', err => {
|
||||
console.error('Cannot connect to redis.')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
|
||||
async function readImagesInUse() {
|
||||
const projectCount = await db.projects.countDocuments()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import minimist from 'minimist'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
import UserRegistrationHandler from '../../../app/src/Features/User/UserRegistrationHandler.mjs'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@ import {
|
||||
existsSync,
|
||||
unlinkSync,
|
||||
renameSync,
|
||||
} from 'fs'
|
||||
import mongodb from '../../../app/src/infrastructure/mongodb.js'
|
||||
import DocumentUpdaterHandler from '../../../app/src/Features/DocumentUpdater/DocumentUpdaterHandler.js'
|
||||
import ProjectZipStreamManager from '../../../app/src/Features/Downloads/ProjectZipStreamManager.js'
|
||||
} from 'node:fs'
|
||||
import mongodb from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
import DocumentUpdaterHandler from '../../../app/src/Features/DocumentUpdater/DocumentUpdaterHandler.mjs'
|
||||
import ProjectZipStreamManager from '../../../app/src/Features/Downloads/ProjectZipStreamManager.mjs'
|
||||
import logger from 'logger-sharelatex'
|
||||
import { Project } from '../../../app/src/models/Project.mjs'
|
||||
import { User } from '../../../app/src/models/User.mjs'
|
||||
import readline from 'readline'
|
||||
import readline from 'node:readline'
|
||||
|
||||
function parseArgs() {
|
||||
return minimist(process.argv.slice(2), {
|
||||
|
||||
@@ -11,7 +11,7 @@ import DocumentUpdaterHandler from '../../../app/src/Features/DocumentUpdater/Do
|
||||
import ProjectZipStreamManager from '../../../app/src/Features/Downloads/ProjectZipStreamManager.mjs'
|
||||
import logger from '@overleaf/logger'
|
||||
import { promisify } from '@overleaf/promise-utils'
|
||||
import { gracefulShutdown } from '../../../app/src/infrastructure/GracefulShutdown.js'
|
||||
import { gracefulShutdown } from '../../../app/src/infrastructure/GracefulShutdown.mjs'
|
||||
import { Project } from '../../../app/src/models/Project.mjs'
|
||||
import { User } from '../../../app/src/models/User.mjs'
|
||||
import readline from 'readline'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import minimist from 'minimist'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { fileURLToPath } from 'url'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ObjectId } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { ObjectId } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
import minimist from 'minimist'
|
||||
import OwnershipTransferHandler from '../../../app/src/Features/Collaborators/OwnershipTransferHandler.mjs'
|
||||
import UserGetter from '../../../app/src/Features/User/UserGetter.mjs'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Settings from '@overleaf/settings'
|
||||
import logger from '@overleaf/logger'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.mjs'
|
||||
import FeaturesHelper from '../../../app/src/Features/Subscription/FeaturesHelper.mjs'
|
||||
import { fileURLToPath } from 'url'
|
||||
const DRY_RUN = !process.argv.includes('--dry-run=false')
|
||||
|
||||
Reference in New Issue
Block a user