[TE] Create Alert - adding post payload to create-job
HOTFIX. Adding POST content (request payload) data to `create-job` request.
@@ -129,10 +129,10 @@ export default Route.extend({
let onboardStartTime = moment();
let newFunctionId = null;
- fetch(createAlertUrl, postProps('')).then(checkStatus)
+ fetch(createAlertUrl, postProps({ name: newName })).then(checkStatus)
.then((result) => {
newFunctionId = result.id;
- return fetch(updateAlertUrl, postProps('')).then(checkStatus);
+ return fetch(updateAlertUrl, postProps(data)).then(checkStatus);
})
.then((result) => {
this.get('checkJobCreateStatus').perform(result.jobId, newName, newFunctionId);
