Skip to content

Commit

Permalink
chore: prevent fail when updating user tier
Browse files Browse the repository at this point in the history
  • Loading branch information
apsantiso committed Apr 15, 2024
1 parent a513c31 commit f5021f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webhooks/handleSubscriptionCanceled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5021f0

Please sign in to comment.