From e1450c6e9711eedd48b2c10df08c51ad03c7de0a Mon Sep 17 00:00:00 2001 From: Alvar San Martin Date: Wed, 22 Apr 2026 15:22:37 +0200 Subject: [PATCH] POST -> PATCH --- packages/sim-consumidor-nos/infrastructure/NosHttpClient.ts | 4 ++++ packages/sim-consumidor-nos/infrastructure/NosRepository.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/sim-consumidor-nos/infrastructure/NosHttpClient.ts b/packages/sim-consumidor-nos/infrastructure/NosHttpClient.ts index c0dc46c..12baddf 100644 --- a/packages/sim-consumidor-nos/infrastructure/NosHttpClient.ts +++ b/packages/sim-consumidor-nos/infrastructure/NosHttpClient.ts @@ -29,6 +29,10 @@ export class NosHttpClient { return this.client.post } + get patch() { + return this.client.patch + } + get get() { return this.client.get } diff --git a/packages/sim-consumidor-nos/infrastructure/NosRepository.ts b/packages/sim-consumidor-nos/infrastructure/NosRepository.ts index 364e62a..9b0a0e1 100644 --- a/packages/sim-consumidor-nos/infrastructure/NosRepository.ts +++ b/packages/sim-consumidor-nos/infrastructure/NosRepository.ts @@ -142,7 +142,7 @@ export class NosRepository { action: "enable" } - const req = this.httpClient.post(PATH, data) + const req = this.httpClient.patch(PATH, data) const resp = await this.manageNosRequest(req) if (resp.error != undefined) { @@ -161,7 +161,7 @@ export class NosRepository { action: "disable" } - const req = this.httpClient.post(PATH, data) + const req = this.httpClient.patch(PATH, data) const resp = await this.manageNosRequest(req) if (resp.error != undefined) {