Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed destructuring issue for the updateSubscription method

Blue Mouse93610ecd5d4f
diff --git a/apps/production/src/user/user.service.ts b/apps/production/src/user/user.service.ts
index d47ce6afe..194a1d2a3 100644
--- a/apps/production/src/user/user.service.ts
+++ b/apps/production/src/user/user.service.ts
@@ -450,13 +450,15 @@ export class UserService {
throw new BadRequestException('Something went wrong')
}
- const { data, response } = result
+ const { data } = result
if (!data.success) {
console.error('[ERROR] (updateSubscription) success -> false:', result)
throw new InternalServerErrorException('Something went wrong')
}
+ const { response } = data
+
const {
subscription_id: subID,
next_payment: { currency, date },