🚑 (billing) Fix stripe webhook "invoice.paid" typo
This commit is contained in:
@@ -149,7 +149,7 @@ const webhookHandler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
)
|
)
|
||||||
return res.send({ message: 'Workspace set to past due.' })
|
return res.send({ message: 'Workspace set to past due.' })
|
||||||
}
|
}
|
||||||
case 'invoices.paid': {
|
case 'invoice.paid': {
|
||||||
const invoice = event.data.object as Stripe.Invoice
|
const invoice = event.data.object as Stripe.Invoice
|
||||||
const workspace = await prisma.workspace.findFirst({
|
const workspace = await prisma.workspace.findFirst({
|
||||||
where: {
|
where: {
|
||||||
|
|||||||
Reference in New Issue
Block a user