Load global blobs when starting backup-verifier

GitOrigin-RevId: 31aa2a3639f8d9a69b5b98f27aff17b98bd14694
This commit is contained in:
Andrew Rumble
2025-03-11 16:39:55 +00:00
committed by Copybot
parent 4aa3588de6
commit eb8f53fa69

View File

@@ -15,6 +15,7 @@ import {
import { mongodb } from './storage/index.js'
import { expressify } from '@overleaf/promise-utils'
import { Blob } from 'overleaf-editor-core'
import { loadGlobalBlobs } from './storage/lib/blob_store/index.js'
const app = express()
@@ -70,6 +71,7 @@ app.use((err, req, res, next) => {
*/
export async function startApp(port) {
await mongodb.client.connect()
await loadGlobalBlobs()
await healthCheck()
const server = http.createServer(app)
await promisify(server.listen.bind(server, port))()