Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • hub/absd
1 result
Show changes
Commits on Source (8)
{ {
"versionDate": "",
"antibodies": 1355665, "antibodies": 1355665,
"species": [ "species": [
"Homo sapiens", "Homo sapiens",
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
width="143" width="143"
height="39" height="39"
alt="The logo of the Institut Pasteur" alt="The logo of the Institut Pasteur"
loading="lazy"
> >
</a> </a>
<a <a
......
@import '../../node_modules/modern-normalize/modern-normalize.css';
/* Fonts and icons */ /* Fonts and icons */
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
......
...@@ -18,7 +18,6 @@ import { createPinia } from 'pinia' ...@@ -18,7 +18,6 @@ import { createPinia } from 'pinia'
import { createApp } from 'vue' import { createApp } from 'vue'
import App from './components/App.vue' import App from './components/App.vue'
import router from './router' import router from './router'
import 'modern-normalize'
import './globals.css' import './globals.css'
createApp(App) createApp(App)
......
...@@ -37,7 +37,6 @@ import downloadsRoute from './routes/downloadsRoute.js' ...@@ -37,7 +37,6 @@ import downloadsRoute from './routes/downloadsRoute.js'
import healthCheckRoute from './routes/healthCheckRoute.js' import healthCheckRoute from './routes/healthCheckRoute.js'
import readyCheckRoute from './routes/readyCheckRoute.js' import readyCheckRoute from './routes/readyCheckRoute.js'
import statisticsRoute from './routes/statisticsRoute.js' import statisticsRoute from './routes/statisticsRoute.js'
import databaseIsSync from './utils/databaseIsSync.js'
/** /**
* Setup the fastify instance with custom * Setup the fastify instance with custom
...@@ -165,9 +164,7 @@ fastify.listen({ ...@@ -165,9 +164,7 @@ fastify.listen({
host: envConfig.ABSD_SERVER_HOST, host: envConfig.ABSD_SERVER_HOST,
port: envConfig.ABSD_SERVER_PORT port: envConfig.ABSD_SERVER_PORT
}).then(async () => { }).then(async () => {
const dbShouldBeRebuilt = !await databaseIsSync(fastify) if (envConfig.NODE_ENV === 'production') {
if (envConfig.NODE_ENV === 'production' && dbShouldBeRebuilt) {
return await buildDatabase() return await buildDatabase()
} }
}).then((dbResults) => { }).then((dbResults) => {
......
...@@ -36,6 +36,9 @@ export class Statistics { ...@@ -36,6 +36,9 @@ export class Statistics {
*/ */
toString() { toString() {
return JSON.stringify(this, (key, value) => { return JSON.stringify(this, (key, value) => {
// Don't include versionDate
if (key === 'versionDate') return undefined
return value instanceof Set ? [...value] : value return value instanceof Set ? [...value] : value
}, 2) }, 2)
} }
......