From f5021f01b9531363383a48651f299f522d9ce436 Mon Sep 17 00:00:00 2001 From: Andres Pinto Date: Mon, 15 Apr 2024 08:32:49 -0400 Subject: [PATCH] chore: prevent fail when updating user tier --- src/webhooks/handleSubscriptionCanceled.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webhooks/handleSubscriptionCanceled.ts b/src/webhooks/handleSubscriptionCanceled.ts index b56581f..15f3ec7 100644 --- a/src/webhooks/handleSubscriptionCanceled.ts +++ b/src/webhooks/handleSubscriptionCanceled.ts @@ -24,10 +24,9 @@ export default async function handleSubscriptionCanceled( await updateUserTier(uuid, FREE_INDIVIDUAL_TIER, config); } catch (err) { log.error( - `Error while updating user tier: uuid: ${uuid} `, + `[TIER/SUB_CANCELED] Error while updating user tier: uuid: ${uuid} `, ); log.error(err); - throw err; } return storageService.changeStorage(uuid, FREE_PLAN_BYTES_SPACE);