Update PUT response to align with current dashboard

This commit is contained in:
Peter Theill
2016-02-11 01:10:09 +01:00
parent 19777699c9
commit 930573bb47

View File

@@ -29,7 +29,7 @@ function updateGlobalConfig(req) {
return req.config.database.rawCollection('_GlobalConfig')
.then(coll => coll.findOneAndUpdate({ _id: 1 }, { $set: req.body }, { returnOriginal: false }))
.then(response => {
return { response: { params: response.value.params } }
return { response: { result: true } }
})
.catch(() => ({
status: 404,