Only snag sconfig from request body
This commit is contained in:
parent
714edb419a
commit
1c30cbf58e
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue