2
0

🚑 (billing) Fix stripe webhook "invoice.paid" typo

This commit is contained in:
Baptiste Arnaud
2023-11-23 15:43:02 +01:00
parent 73d2e165bf
commit 5b0073bb61

View File

@ -149,7 +149,7 @@ const webhookHandler = async (req: NextApiRequest, res: NextApiResponse) => {
)
return res.send({ message: 'Workspace set to past due.' })
}
case 'invoices.paid': {
case 'invoice.paid': {
const invoice = event.data.object as Stripe.Invoice
const workspace = await prisma.workspace.findFirst({
where: {