Skip to content

Commit

Permalink
🔥remove old update decoys state function
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Jan 7, 2025
1 parent d52c130 commit b207b2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions controlpanel/cad/src/app/services/api/decoy-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ export class DecoyApiService {
getDecoys(protectedApp: ProtectedApp) {
return this.http.get<ApiResponse>(`${this.globalState.API_URL}/decoys/${protectedApp.id}`);
}
patchDecoysState(decoys: DecoyData[]) {
return this.http.patch<ApiResponse>(`${this.globalState.API_URL}/decoys/state`, decoys);
}

getDecoy(id: UUID) {
return this.http.get<ApiResponse>(`${this.globalState.API_URL}/decoy/${id}`);
Expand Down
8 changes: 0 additions & 8 deletions controlpanel/cad/src/app/services/decoy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ export class DecoyService {
return { message: "Error when fetching decoys list", type: 'error' };
}
}
async updateDecoysState(decoys: DecoyData[]): Promise<ApiResponse> {
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;
Expand Down

0 comments on commit b207b2c

Please sign in to comment.