Skip to content

Commit

Permalink
Merge pull request #439 from flowforge/fix-project-delete-billing-0.3.x
Browse files Browse the repository at this point in the history
Fix project delete billing 0.3.x
  • Loading branch information
hardillb authored Apr 4, 2022
2 parents ec24c26 + e4b5838 commit f9fa076
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#### 0.3.5: Maintenance Release

- Use the correct ID when updating billing metadata (#439) @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

Expand Down
4 changes: 2 additions & 2 deletions forge/ee/lib/billing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit f9fa076

Please sign in to comment.