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) {