Skip to content

Commit 66053bc

Browse files
committed
no cache for purchases
1 parent 880100d commit 66053bc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ qx.Class.define("osparc.store.LicensedItems", {
2323
this.base(arguments);
2424

2525
this.__licensedItems = null;
26-
this.__purchasedLicensedItems = {};
2726
},
2827

2928
members: {
3029
__licensedItems: null,
31-
__purchasedLicensedItems: null,
3230

3331
getLicensedItems: function() {
3432
if (this.__licensedItems) {
@@ -43,9 +41,6 @@ qx.Class.define("osparc.store.LicensedItems", {
4341
},
4442

4543
getPurchasedLicensedItems: function(walletId, urlParams, options = {}) {
46-
if (walletId in this.__purchasedLicensedItems) {
47-
return new Promise(resolve => resolve(this.__purchasedLicensedItems[walletId]));
48-
}
4944
let purchasesParams = {
5045
url: {
5146
walletId,
@@ -57,10 +52,6 @@ qx.Class.define("osparc.store.LicensedItems", {
5752
purchasesParams.url = Object.assign(purchasesParams.url, urlParams);
5853
}
5954
return osparc.data.Resources.fetch("licensedItems", "purchases", purchasesParams, options)
60-
.then(purchases => {
61-
this.__purchasedLicensedItems[walletId] = purchases;
62-
return purchases;
63-
});
6455
},
6556

6657
purchaseLicensedItem: function(licensedItemId, walletId, pricingPlanId, pricingUnitId, numberOfSeats) {
@@ -76,7 +67,6 @@ qx.Class.define("osparc.store.LicensedItems", {
7667
},
7768
}
7869
return osparc.data.Resources.fetch("licensedItems", "purchase", params);
79-
// OM add purchase to cache
8070
},
8171

8272
getCheckedOutLicensedItems: function(walletId, urlParams, options = {}) {

0 commit comments

Comments
 (0)