Skip to content

Commit 3588ae6

Browse files
committed
getAllPages
1 parent 21caad7 commit 3588ae6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

services/static-webserver/client/source/class/osparc/data/Resources.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ qx.Class.define("osparc.data.Resources", {
642642
method: "GET",
643643
url: statics.API + "/admin/pricing-plans"
644644
},
645+
getPage: {
646+
method: "GET",
647+
url: statics.API + "/admin/pricing-plans?offset={offset}&limit={limit}"
648+
},
645649
getOne: {
646650
method: "GET",
647651
url: statics.API + "/admin/pricing-plans/{pricingPlanId}"

services/static-webserver/client/source/class/osparc/store/Pricing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ qx.Class.define("osparc.store.Pricing", {
3333
pricingPlansCached: null,
3434

3535
fetchPricingPlans: function() {
36-
return osparc.data.Resources.fetch("pricingPlans", "get")
36+
return osparc.data.Resources.getInstance().getAllPages("pricingPlans")
3737
.then(pricingPlansData => {
3838
const pricingPlans = [];
3939
pricingPlansData.forEach(pricingPlanData => {

0 commit comments

Comments
 (0)