mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #29948 from overleaf/ar/docstore-conversion-to-esm
[docstore] conversion to esm GitOrigin-RevId: 9d255047bd7ae25f2b0b38f3a721741e8a0b7ad8
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user