add CONFIGURED status to bootstrap before READY

This commit is contained in:
lesion
2022-08-02 15:14:34 +02:00
parent 3e98f437b1
commit adbe2ec2a8
4 changed files with 16 additions and 17 deletions

View File

@@ -25,8 +25,9 @@ const initialize = {
const dayjs = require('dayjs')
const timezone = require('dayjs/plugin/timezone')
dayjs.extend(timezone)
if (config.status == 'READY') {
if (config.status == 'CONFIGURED') {
await db.initialize()
config.status = 'READY'
} else {
if (process.env.GANCIO_DB_DIALECT) {
const setupController = require('./api/controller/setup')