Skip to content

Commit 0ab4a34

Browse files
committed
Make sure to submit API Umbrella Backend ID
1 parent 6b2b5ea commit 0ab4a34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/methods/apiBackends.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ Meteor.methods({
6262
}
6363
return apiUmbrellaWebResponse;
6464
},
65-
updateApiBackendOnApiUmbrella: function (apiBackendForm) {
65+
updateApiBackendOnApiUmbrella: function (apiUmbrellaBackendId, apiBackend) {
6666
// Construct an API Backend object for API Umbrella with one 'api' key
6767
var constructedBackend = {
68-
"api": apiBackendForm
68+
"api": apiBackend
6969
};
7070

7171
// Response object to be send back to client layer.
@@ -77,7 +77,7 @@ Meteor.methods({
7777

7878
try {
7979
// Send the API Backend to API Umbrella's endpoint for creation in the backend
80-
apiUmbrellaWebResponse.result = apiUmbrellaWeb.adminApi.v1.apiBackends.updateApiBackend(constructedBackend);
80+
apiUmbrellaWebResponse.result = apiUmbrellaWeb.adminApi.v1.apiBackends.updateApiBackend(apiUmbrellaBackendId, constructedBackend);
8181
} catch (apiUmbrellaError) {
8282

8383
//set the errors object

0 commit comments

Comments
 (0)