Commit e00901e0 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

appAPI add deleteChildDocument

parent 3e5c5e82
...@@ -726,6 +726,15 @@ this.appAPI = { ...@@ -726,6 +726,15 @@ this.appAPI = {
}); });
}, },
deleteChildDocument: async function(parentDocID, childDocID) {
return new Promise(resolve => {
rest.synergyPost(`api/docflow/doc/delete_child_document?parent_documentID=${parentDocID}&child_documentID=${childDocID}`, null, "application/json; charset=UTF-8", resolve, err => {
console.log(`ERROR [ deleteChildDocument ]: ${JSON.stringify(err)}`);
resolve(null);
});
});
},
getCollationInfo: async function(registry_code, collated_registry_code) { getCollationInfo: async function(registry_code, collated_registry_code) {
return new Promise(async resolve => { return new Promise(async resolve => {
rest.synergyGet(`api/registry/collation_info?registry_code=${registry_code}&collated_registry_code=${collated_registry_code}`, resolve, err => { rest.synergyGet(`api/registry/collation_info?registry_code=${registry_code}&collated_registry_code=${collated_registry_code}`, resolve, err => {
......
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