Commit 86e1969d authored by Tristan Cavelier's avatar Tristan Cavelier

jIO job update does not clone sub response fix

parent 0c387951
......@@ -118,5 +118,6 @@ function restCommandRejecter(param, args) {
priority.error = priority.statusText.toLowerCase().replace(/ /g, '_').
replace(/[^_a-z]/g, '');
}
param.storage_response = priority;
return param.solver.reject(deepClone(priority));
}
......@@ -122,5 +122,6 @@ function restCommandResolver(param, args) {
]);
}
param.storage_response = priority;
return param.solver.resolve(deepClone(priority));
}
......@@ -41,11 +41,11 @@ function enableJobChecker(jio, shared, options) {
if (!original_job.solver) {
original_job.solver = new_job.solver;
} else {
original_job.promise.then(
new_job.command.resolve,
new_job.command.reject,
new_job.command.notify
);
original_job.promise.then(function () {
new_job.command.resolve(deepClone(original_job.storage_response));
}, function () {
new_job.command.reject(deepClone(original_job.storage_response));
}, new_job.command.notify);
}
}
new_job.state = 'running';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment