refactor: Switch cloud plan retrieval endpoint (no-changelog) (#6529)

* refactor: Switch cloud plan retrieval endpoint

* refactor: Remove user ID from request

* refactor: Update endpoint

* refactor: Update to /rest/admin/cloud-plan

* refactor: Remove redundant `/rest` segment
This commit is contained in:
Iván Ovejero
2023-07-05 12:57:50 +02:00
committed by GitHub
parent 7ffe3cb36a
commit 76aca62dd3
2 changed files with 3 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ export const useCloudPlanStore = defineStore('cloudPlan', () => {
state.loadingPlan = true;
let plan;
try {
plan = await getCurrentPlan(rootStore.getRestCloudApiContext, `${cloudUserId}`);
plan = await getCurrentPlan(rootStore.getRestApiContext);
state.data = plan;
state.loadingPlan = false;
} catch (error) {