From 75a3c0cc557df2f51a79f9ee0bd61e037f4ada63 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Fri, 21 Apr 2017 11:05:40 -0400 Subject: [PATCH] Project update now updates on project-config Signed-off-by: Laurence Maultsby --- skyquake/framework/core/modules/api/projectManagementAPI.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skyquake/framework/core/modules/api/projectManagementAPI.js b/skyquake/framework/core/modules/api/projectManagementAPI.js index c00de3240..feedfc220 100644 --- a/skyquake/framework/core/modules/api/projectManagementAPI.js +++ b/skyquake/framework/core/modules/api/projectManagementAPI.js @@ -107,13 +107,11 @@ ProjectManagement.update = function(req) { var self = this; var api_server = req.query['api_server']; var bodyData = req.body; - data = { - "project":[bodyData] - } + data = bodyData['project-config'] var updateTasks = []; var updateUser = rp({ - uri: utils.confdPort(api_server) + '/api/config/project', + uri: utils.confdPort(api_server) + '/api/config/project/' + bodyData.name + '/project-config', method: 'PUT', headers: _.extend({}, constants.HTTP_HEADERS.accept.data, { 'Authorization': req.session && req.session.authorization -- 2.25.1