fix: setup should be allowed even if SQL not defined

pull/243/head
Josh Moore 1 year ago
parent 36de04b483
commit 04acf001e7

@ -26,6 +26,7 @@ router.post('/', BodyParserJson(), async (req, res) => {
await UserConfig.saveConfigFile(); await UserConfig.saveConfigFile();
// Set data storage (not files) to SQL if required // Set data storage (not files) to SQL if required
if (UserConfig.config.sql?.mySql != null)
await Promise.all([MySql.configure(), setDataModeToSql()]); await Promise.all([MySql.configure(), setDataModeToSql()]);
return res.json({ success: true }); return res.json({ success: true });

Loading…
Cancel
Save