Merge pull request #29948 from overleaf/ar/docstore-conversion-to-esm

[docstore] conversion to esm

GitOrigin-RevId: 9d255047bd7ae25f2b0b38f3a721741e8a0b7ad8
This commit is contained in:
Andrew Rumble
2025-12-03 09:05:42 +00:00
committed by Copybot
parent f1e788d9b3
commit a1f1ca2028
42 changed files with 2736 additions and 2541 deletions
+11 -7
View File
@@ -1,10 +1,13 @@
const { db, ObjectId } = require('./mongodb')
const _ = require('lodash')
const crypto = require('node:crypto')
const settings = require('@overleaf/settings')
import mongodb from './mongodb.js'
import _ from 'lodash'
import crypto from 'node:crypto'
import settings from '@overleaf/settings'
import logger from '@overleaf/logger'
import { fetchNothing, fetchJson } from '@overleaf/fetch-utils'
const { db, ObjectId } = mongodb
const { port } = settings.internal.docstore
const logger = require('@overleaf/logger')
const { fetchNothing, fetchJson } = require('@overleaf/fetch-utils')
async function check() {
const docId = new ObjectId()
@@ -30,6 +33,7 @@ async function check() {
throw new Error(`health check lines not equal ${body.lines} != ${lines}`)
}
}
module.exports = {
export default {
check,
}