Skip to content

Commit cdec8e6

Browse files
committed
[skip ci] expiration date
1 parent d0ba254 commit cdec8e6

File tree

1 file changed

+3
-1
lines changed
  • services/static-webserver/client/source/class/osparc/vipMarket

1 file changed

+3
-1
lines changed

services/static-webserver/client/source/class/osparc/vipMarket/VipMarket.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
271271
.then(() => {
272272
const found = this.__anatomicalModels.find(model => model["ID"] === modelId);
273273
if (found) {
274+
const expirationDate = new Date();
275+
expirationDate.setMonth(expirationDate.getMonth() + 1)
274276
found["purchased"] = {
275-
expiresAt: new Date(), // get this info from the response
277+
expiresAt: expirationDate, // get this info from the response
276278
numberOfSeats, // get this info from the response
277279
};
278280
this.__populateModels();

0 commit comments

Comments
 (0)