Skip to content

Commit

Permalink
Merge pull request #2081 from flowforge/knolleary-patch-2
Browse files Browse the repository at this point in the history
Fix deleting instance with missing subscription
  • Loading branch information
knolleary committed May 3, 2023
2 parents 0ef0151 + eaa729e commit 2335ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forge/ee/lib/billing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ module.exports.init = async function (app) {
})
} catch (err) {
if (err.rawType === 'invalid_request_error' && err.code === 'resource_missing' && err.param === 'subscription') {
return this._app.log.warn(`Subscription was not found in Stripe, but continuing removal: ${err}`)
return app.log.warn(`Subscription was not found in Stripe, but continuing removal: ${err}`)
}

await setProjectBillingState(project, BILLING_STATES.BILLED)
Expand Down

0 comments on commit 2335ed3

Please sign in to comment.