mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Remove projectHistoryMetaData from mongo db interface
GitOrigin-RevId: dbbc2218c7b1ff8b7907248f86b03189e9e4006d
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { db } from '../../app/src/infrastructure/mongodb.js'
|
||||
import {
|
||||
db,
|
||||
getCollectionInternal,
|
||||
} from '../../app/src/infrastructure/mongodb.js'
|
||||
import { ensureMongoTimeout } from '../helpers/env_variable_helper.mjs'
|
||||
import { scriptRunner } from '../lib/ScriptRunner.mjs'
|
||||
// Ensure default mongo query timeout has been increased 1h
|
||||
@@ -47,7 +50,10 @@ async function setAllowDowngradeToFalse() {
|
||||
async function deleteHistoryCollections() {
|
||||
await gracefullyDropCollection(db.docHistory)
|
||||
await gracefullyDropCollection(db.docHistoryIndex)
|
||||
await gracefullyDropCollection(db.projectHistoryMetaData)
|
||||
const projectHistoryMetaData = await getCollectionInternal(
|
||||
'projectHistoryMetaData'
|
||||
)
|
||||
await gracefullyDropCollection(projectHistoryMetaData)
|
||||
}
|
||||
|
||||
async function gracefullyDropCollection(collection) {
|
||||
|
||||
Reference in New Issue
Block a user