Update cancellation status on receiving webhook from Stripe
This commit is contained in:
parent
3d23a3b21a
commit
61d5f3189b
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ func (c *StripeController) handleCustomerSubscriptionDeleted(event stripe.Event)
|
|||
return ente.StripeEventLog{}, stacktrace.Propagate(err, "")
|
||||
}
|
||||
|
||||
err = c.BillingRepo.UpdateSubscriptionCancellationStatus(userID, true)
|
||||
if err != nil {
|
||||
return ente.StripeEventLog{}, stacktrace.Propagate(err, "")
|
||||
}
|
||||
|
||||
skipMail := stripeSubscription.Metadata[SkipMailKey]
|
||||
// Send a cancellation notification email for folks who are either on
|
||||
// individual plan or admin of a family plan.
|
||||
|
|
Loading…
Add table
Reference in a new issue