mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
deleteNodesById
This commit is contained in:
parent
ac7a33e454
commit
d34cca3c6e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user