diff --git a/CHANGELOG.md b/CHANGELOG.md index f87230fe13..1d5864da58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +#### 0.4.1: Maintence Release + + - Fix for Stripe "charge.succeeded" callback (#484) @hardillb + #### 0.4.0: Release - Timezone support for Node-RED (#452) @PLCMercenary diff --git a/forge/ee/routes/billing/index.js b/forge/ee/routes/billing/index.js index 10b3f8102a..bb4e13c6ec 100644 --- a/forge/ee/routes/billing/index.js +++ b/forge/ee/routes/billing/index.js @@ -125,7 +125,7 @@ module.exports = async function (app) { case 'charge.succeeded': // gate on config setting if (app.config.billing?.stripe?.activation_price) { - invoice = await stripe.invoice.retrieve(event.data.object.invoice) + invoice = await stripe.invoices.retrieve(event.data.object.invoice) invoice.lines.data.forEach(item => { if (item.price.id === app.config.billing?.stripe?.activation_price) { activation = true diff --git a/package.json b/package.json index b7f1d2fc57..56edf7a4cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flowforge/flowforge", - "version": "0.4.0", + "version": "0.4.1", "description": "An open source low-code development platform", "scripts": { "start": "node forge/app.js",