mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
Load global blobs when starting backup-verifier
GitOrigin-RevId: 31aa2a3639f8d9a69b5b98f27aff17b98bd14694
This commit is contained in:
@@ -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))()
|
||||
|
||||
Reference in New Issue
Block a user