Only snag sconfig from request body

This commit is contained in:
oitsjustjose 2020-07-05 09:30:07 -05:00
commit 1c30cbf58e

View file

@ -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) {