diff --git a/src/server/app.js b/src/server/app.js index 1670321313ede81f94428628f16459b9bd535325..ac0adf5803e008023db408782618f603b13c5e76 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) => {