From 81c96d5734f18467ed083b3ffbc4e89b917d27b8 Mon Sep 17 00:00:00 2001 From: Simon Malesys <simon.malesys@pasteur.fr> Date: Wed, 5 Mar 2025 11:05:43 +0100 Subject: [PATCH] Remove databaseIsSync to avoid issues --- src/server/app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server/app.js b/src/server/app.js index 1670321..ac0adf5 100644 --- a/src/server/app.js +++ b/src/server/app.js @@ -37,7 +37,6 @@ import downloadsRoute from './routes/downloadsRoute.js' import healthCheckRoute from './routes/healthCheckRoute.js' import readyCheckRoute from './routes/readyCheckRoute.js' import statisticsRoute from './routes/statisticsRoute.js' -import databaseIsSync from './utils/databaseIsSync.js' /** * Setup the fastify instance with custom @@ -165,9 +164,7 @@ fastify.listen({ host: envConfig.ABSD_SERVER_HOST, port: envConfig.ABSD_SERVER_PORT }).then(async () => { - const dbShouldBeRebuilt = !await databaseIsSync(fastify) - - if (envConfig.NODE_ENV === 'production' && dbShouldBeRebuilt) { + if (envConfig.NODE_ENV === 'production') { return await buildDatabase() } }).then((dbResults) => { -- GitLab