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
+6 -4
View File
@@ -1,6 +1,8 @@
const { db, ObjectId } = require('./mongodb')
const Settings = require('@overleaf/settings')
const Errors = require('./Errors')
import mongodb from './mongodb.js'
import Settings from '@overleaf/settings'
import Errors from './Errors.js'
const { db, ObjectId } = mongodb
const ARCHIVING_LOCK_DURATION_MS = Settings.archivingLockDurationMs
@@ -239,7 +241,7 @@ async function destroyProject(projectId) {
await db.docs.deleteMany({ project_id: new ObjectId(projectId) })
}
module.exports = {
export default {
findDoc,
getProjectsDeletedDocs,
getProjectsDocs,