From ba93924d20531951fda8b8f493ee8559353fd839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Mon, 12 Jan 2026 16:35:32 +0100 Subject: [PATCH] fix: handle past_due and unpaid from polar --- apps/api/src/controllers/webhook.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/controllers/webhook.controller.ts b/apps/api/src/controllers/webhook.controller.ts index ccd447a2..788e2741 100644 --- a/apps/api/src/controllers/webhook.controller.ts +++ b/apps/api/src/controllers/webhook.controller.ts @@ -191,7 +191,9 @@ export async function polarWebhook( where: { subscriptionCustomerId: event.data.customer.id, subscriptionId: event.data.id, - subscriptionStatus: 'active', + subscriptionStatus: { + in: ['active', 'past_due', 'unpaid'], + }, }, });