From 9a5a3e879d607367bcdc89deb7af5c4bef7a2ad2 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Sat, 25 Mar 2023 17:40:45 +0300 Subject: [PATCH] fix: Use paddle_subscription_id as field name for findOne query --- packages/backend/src/helpers/billing/webhooks.ee.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/helpers/billing/webhooks.ee.ts b/packages/backend/src/helpers/billing/webhooks.ee.ts index cff68574..ae7727d7 100644 --- a/packages/backend/src/helpers/billing/webhooks.ee.ts +++ b/packages/backend/src/helpers/billing/webhooks.ee.ts @@ -9,7 +9,7 @@ const handleSubscriptionCreated = async (request: IRequest) => { const handleSubscriptionPaymentSucceeded = async (request: IRequest) => { const subscription = await Subscription.query() .findOne({ - paddleSubscriptionId: request.body.subscription_id, + paddle_subscription_id: request.body.subscription_id, }) .throwIfNotFound();