Project update now updates on project-config
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 21 Apr 2017 15:05:40 +0000 (11:05 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 21 Apr 2017 15:05:40 +0000 (11:05 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/framework/core/modules/api/projectManagementAPI.js

index c00de32..feedfc2 100644 (file)
@@ -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