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) => {
|
app.put('/', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const conf = new ConfigDB()
|
const conf = new ConfigDB()
|
||||||
conf.json = req.body.config
|
conf.json = req.body.json
|
||||||
conf.name = req.body.name
|
|
||||||
await conf.save()
|
await conf.save()
|
||||||
|
|
||||||
if (req.isAuthenticated() && req.user) {
|
if (req.isAuthenticated() && req.user) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue