Commit e56d7941 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage taskman get shortcut done

parent 1ecf0899
...@@ -191,16 +191,10 @@ ...@@ -191,16 +191,10 @@
ERP5Storage.onView.taskmanager = {}; ERP5Storage.onView.taskmanager = {};
ERP5Storage.onView.taskmanager.get = function (param, options) { ERP5Storage.onView.taskmanager.get = function (param, options) {
return getHatoas.call(this, param, options). return ERP5Storage.onView["default"].get.call(this, param, options).
then(function (response) { then(function (answer) {
var result = JSON.parse(response.target.responseText); answer.data = toJIOMetadata(answer.data);
result._id = param._id; return answer;
delete result._embedded;
delete result._links;
delete result._debug;
result = toJIOMetadata(result);
new jIO.Metadata(result).format();
return {"data": result};
}); });
}; };
......
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