diff --git a/backend/routers/api.ts b/backend/routers/api.ts index 60f44d0..67f2805 100644 --- a/backend/routers/api.ts +++ b/backend/routers/api.ts @@ -14,7 +14,7 @@ router.post('/setup', BodyParserJson(), async (req, res) => { if (UserConfig.ready) return res.status(409).json({ success: false, message: 'User config already exists' }); - log.debug('Setup initiated'); + log.info('Setup', 'initiated'); try { // Parse body @@ -27,6 +27,8 @@ router.post('/setup', BodyParserJson(), async (req, res) => { if (UserConfig.config.sql?.mySql != null) await Promise.all([MySql.configure(), data.setDataModeToSql()]); + log.success('Setup', 'completed'); + return res.json({ success: true }); } catch (err: any) { return res.status(400).json({ success: false, message: err.message });