mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-14 17:58:21 +00:00
deleteNodesById
This commit is contained in:
@@ -62,6 +62,12 @@ export class NodesApi extends RepoApi {
|
|||||||
return Promise.all(deletions);
|
return Promise.all(deletions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteNodesById(ids: string[], permanent: boolean = true): Promise<any[]> {
|
||||||
|
return ids.reduce((previous, current) => (
|
||||||
|
previous.then(() => this.deleteNodeById(current, permanent))
|
||||||
|
), Promise.resolve());
|
||||||
|
}
|
||||||
|
|
||||||
// children
|
// children
|
||||||
getNodeChildren(nodeId: string): Promise<any> {
|
getNodeChildren(nodeId: string): Promise<any> {
|
||||||
return this
|
return this
|
||||||
|
Reference in New Issue
Block a user