From ad994cc5f9cda516b849f3f7d6a6b80aeefb6dd1 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 4 Apr 2022 16:39:19 +0100 Subject: [PATCH 1/3] Use subscription stripe id not, squelize id --- forge/ee/lib/billing/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge/ee/lib/billing/index.js b/forge/ee/lib/billing/index.js index 348017f4e2..19564b6aed 100644 --- a/forge/ee/lib/billing/index.js +++ b/forge/ee/lib/billing/index.js @@ -58,7 +58,7 @@ module.exports.init = function (app) { // TODO update meta data? try { await stripe.subscriptionItems.update(projectItem.id, update) - await stripe.subscriptions.update(subscription.id, { + await stripe.subscriptions.update(subscription.subscription, { metadata: metadata }) } catch (error) { @@ -110,7 +110,7 @@ module.exports.init = function (app) { try { await stripe.subscriptionItems.update(projectItem.id, update) - await stripe.subscriptions.update(subscription.id, { + await stripe.subscriptions.update(subscription.subscription, { metadata: metadata }) } catch (err) { From 0e2e92f66123b65719fa5b64a33e23ec714b115f Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 4 Apr 2022 16:46:23 +0100 Subject: [PATCH 2/3] Bump version and CHANGELOG --- CHANGELOG.md | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6148d20c54..b0f5f4190d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ +#### 0.3.5: Maintenance Release + + - Use the correct ID when updating billing metadata (#) @hardillb + #### 0.3.4: Maintenance Release -- Backport project billing metadata fix (#435) @hardillb + - Backport project billing metadata fix (#435) @hardillb #### 0.3.3: Maintenance Release diff --git a/package.json b/package.json index 2c7c6ba12b..68c2f5c689 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flowforge/flowforge", - "version": "0.3.4", + "version": "0.3.5", "description": "An open source low-code development platform", "scripts": { "start": "node forge/app.js", From e4b58389b85a5eb793d823263a06eb1d19108295 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 4 Apr 2022 16:47:50 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0f5f4190d..9cd3ae389c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ #### 0.3.5: Maintenance Release - - Use the correct ID when updating billing metadata (#) @hardillb + - Use the correct ID when updating billing metadata (#439) @hardillb #### 0.3.4: Maintenance Release