Clean up direct usages of db.docHistory

Co-authored-by: Ilkin Ismailov <ilkin.ismailov@overleaf.com>
GitOrigin-RevId: 63bc36f15d85f68770bbbff5a7f64d5bc167c7f0
This commit is contained in:
Andrew Rumble
2025-10-30 09:07:18 +00:00
committed by Copybot
co-authored by Ilkin Ismailov
parent 0036ad5f31
commit e8c829deab
2 changed files with 7 additions and 5 deletions
@@ -48,7 +48,8 @@ async function setAllowDowngradeToFalse() {
}
async function deleteHistoryCollections() {
await gracefullyDropCollection(db.docHistory)
const docHistory = await getCollectionInternal('docHistory')
await gracefullyDropCollection(docHistory)
await gracefullyDropCollection(db.docHistoryIndex)
const projectHistoryMetaData = await getCollectionInternal(
'projectHistoryMetaData'