Skip to content

Commit

Permalink
[ACS-5994] roll back apiAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-web-ua committed Oct 18, 2023
1 parent 3b8b58d commit a3fe165
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class NodesApi extends RepoApi {

async deleteNodeById(id: string, permanent: boolean = true): Promise<void> {
try {
await this.apiAuth();
await this.nodesApi.deleteNode(id, { permanent });
} catch (error) {
this.handleError(`${this.constructor.name} ${this.deleteNodeById.name}`, error);
Expand Down Expand Up @@ -174,6 +175,7 @@ export class NodesApi extends RepoApi {

async deleteNodesById(ids: string[], permanent: boolean = true): Promise<void> {
try {
await this.apiAuth();
await this.nodesApi.deleteNodes(ids, {permanent});
} catch (error) {
this.handleError(`${this.constructor.name} ${this.deleteNodesById.name}`, error);
Expand Down

0 comments on commit a3fe165

Please sign in to comment.