[ACS-5994] Remove redundant deleteNodes method from e2e (#3587)

* [ACS-5994] remove redundant deleteNodes method [ci:force]

* [link-adf:dev-mmaliarchuk/ACS-5994-fix-jsApi-deleteNodes][affected:*][ci:force]

* rebase
This commit is contained in:
Mykyta Maliarchuk
2024-02-20 13:01:52 +01:00
committed by GitHub
parent ff57112d99
commit 3f182a5a68
13 changed files with 24 additions and 43 deletions

View File

@@ -144,9 +144,7 @@ export class NodesApi {
*/
async deleteNodes(nodeIds: string[], permanent: boolean = true): Promise<any> {
try {
for (const nodeId of nodeIds) {
await this.apiService.nodes.deleteNode(nodeId, { permanent });
}
await this.apiService.nodes.deleteNodes(nodeIds, { permanent });
} catch (error) {
console.error(`${this.constructor.name} ${this.deleteNodes.name}`, error);
}