Skip to content

Commit

Permalink
[INNO] Fixing the delete subscription endpoint (#2605)
Browse files Browse the repository at this point in the history
- Fixing the delete subscription endpoint
  • Loading branch information
krazziekay authored Dec 7, 2023
1 parent 247f143 commit 6b2bb0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spa/src/api/subscriptions/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { axiosRest, axiosRestWithGitHubToken } from "../axiosInstance";
import { axiosRest } from "../axiosInstance";

export default {
getSubscriptions: () => axiosRest.get("/rest/subscriptions"),
deleteSubscription: (subscriptionId: number) =>
axiosRestWithGitHubToken.delete("/rest/app/cloud/subscription/:subscriptionId", { params: { subscriptionId } })
axiosRest.delete(`/rest/app/cloud/subscriptions/${subscriptionId}`)
};
1 change: 1 addition & 0 deletions src/rest-interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export type SuccessfulConnection = {
jiraHost: string;
isGlobalInstall: boolean;
backfillSince: string | null;
subscriptionId: number;
};

export type FailedCloudConnection = {
Expand Down

0 comments on commit 6b2bb0f

Please sign in to comment.