Commit 7fa22411 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

update appAPI.js

parent 3969dedf
...@@ -89,6 +89,15 @@ this.appAPI = { ...@@ -89,6 +89,15 @@ this.appAPI = {
}); });
}, },
acceptResultWork: async function(resultID, workID) {
return new Promise(async resolve => {
rest.synergyGet(`api/workflow/work/accept_result?resultID=${resultID}&workID=${workID}`, resolve, err => {
console.log(`ERROR [ acceptResultWork ]: ${JSON.stringify(err)}`);
resolve(null);
});
});
},
createWork: async function(body){ createWork: async function(body){
return new Promise(async resolve => { return new Promise(async resolve => {
try { try {
......
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