Changed the way that the migration get's triggered

This commit is contained in:
2021-08-14 13:09:25 +02:00
parent 512acc0b8c
commit 8fa489f2bc
2 changed files with 2 additions and 8 deletions

View File

@@ -315,13 +315,6 @@ async function validate(username, password, req, reply) {
// Run the server!
const start = async () => {
try {
await knex.migrate.latest()
} catch (err) {
fastify.log.error(err)
process.exit(1)
}
try {
await fastify.listen(3000, '0.0.0.0')
} catch (err) {