diff --git a/src/app/routes/routes.ts b/src/app/routes/routes.ts index 7858340..9364b50 100644 --- a/src/app/routes/routes.ts +++ b/src/app/routes/routes.ts @@ -14,8 +14,7 @@ export const init = (app: Application, passport: PassportStatic) => { app.put('/', async (req, res) => { try { const conf = new ConfigDB() - conf.json = req.body.config - conf.name = req.body.name + conf.json = req.body.json await conf.save() if (req.isAuthenticated() && req.user) {