mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 17:51:49 +10:00
fix: return response for failed invoices
This commit is contained in:
@ -230,6 +230,11 @@ export const stripeWebhookHandler = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
await onSubscriptionUpdated({ userId: result.userId, subscription });
|
await onSubscriptionUpdated({ userId: result.userId, subscription });
|
||||||
|
|
||||||
|
return res.status(200).json({
|
||||||
|
success: true,
|
||||||
|
message: 'Webhook received',
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.with('customer.subscription.deleted', async () => {
|
.with('customer.subscription.deleted', async () => {
|
||||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||||
|
|||||||
Reference in New Issue
Block a user