From dbf6cf2578a2e43c247f20c812921240ec8ae7f2 Mon Sep 17 00:00:00 2001 From: Fran Jurmanovic Date: Mon, 2 Aug 2021 10:20:43 -0700 Subject: [PATCH] changed POST method to PUT for end subscription --- src/services/SubscriptionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/SubscriptionService.ts b/src/services/SubscriptionService.ts index 5dc01b6..db74fa6 100644 --- a/src/services/SubscriptionService.ts +++ b/src/services/SubscriptionService.ts @@ -6,7 +6,7 @@ class SubscriptionService extends BaseService { } endSubscription = (id) => { - return this.appService.post(this.endpoint + `/end`, {id}, null); + return this.appService.put(this.endpoint + `/end/${id}`, null, null); }; }