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,
"species": [
"Homo sapiens",
......
......@@ -11,6 +11,7 @@
width="143"
height="39"
alt="The logo of the Institut Pasteur"
loading="lazy"
>
</a>
<a
......
@import '../../node_modules/modern-normalize/modern-normalize.css';
/* Fonts and icons */
/* ------------------------------------------------------------------------- */
......
......@@ -18,7 +18,6 @@ import { createPinia } from 'pinia'
import { createApp } from 'vue'
import App from './components/App.vue'
import router from './router'
import 'modern-normalize'
import './globals.css'
createApp(App)
......
......@@ -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) => {
......
......@@ -36,6 +36,9 @@ export class Statistics {
*/
toString() {
return JSON.stringify(this, (key, value) => {
// Don't include versionDate
if (key === 'versionDate') return undefined
return value instanceof Set ? [...value] : value
}, 2)
}
......