From b207b2c0409ff3bc944fbe951a2b5f13acbb929a Mon Sep 17 00:00:00 2001 From: "mtarrade.sap@gmail.com" Date: Tue, 7 Jan 2025 08:37:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5remove=20old=20update=20decoys=20st?= =?UTF-8?q?ate=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cad/src/app/services/api/decoy-api.service.ts | 3 --- controlpanel/cad/src/app/services/decoy.service.ts | 8 -------- 2 files changed, 11 deletions(-) diff --git a/controlpanel/cad/src/app/services/api/decoy-api.service.ts b/controlpanel/cad/src/app/services/api/decoy-api.service.ts index 396a4aa..be6db22 100644 --- a/controlpanel/cad/src/app/services/api/decoy-api.service.ts +++ b/controlpanel/cad/src/app/services/api/decoy-api.service.ts @@ -17,9 +17,6 @@ export class DecoyApiService { getDecoys(protectedApp: ProtectedApp) { return this.http.get(`${this.globalState.API_URL}/decoys/${protectedApp.id}`); } - patchDecoysState(decoys: DecoyData[]) { - return this.http.patch(`${this.globalState.API_URL}/decoys/state`, decoys); - } getDecoy(id: UUID) { return this.http.get(`${this.globalState.API_URL}/decoy/${id}`); diff --git a/controlpanel/cad/src/app/services/decoy.service.ts b/controlpanel/cad/src/app/services/decoy.service.ts index d6423bc..62d243a 100644 --- a/controlpanel/cad/src/app/services/decoy.service.ts +++ b/controlpanel/cad/src/app/services/decoy.service.ts @@ -87,14 +87,6 @@ export class DecoyService { return { message: "Error when fetching decoys list", type: 'error' }; } } - async updateDecoysState(decoys: DecoyData[]): Promise { - try { - return await lastValueFrom(this.decoyApi.patchDecoysState(decoys)); - } catch (e) { - console.error(e); - return { message: "Error when updating decoys list", type: 'error' }; - } - } get isEdit(): boolean { return this.isEditSubject.value;