π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(subscription): log webhook-path failures instead of swallowing them
Gilad Resisi2b4fcbed7c93
diff --git a/libraries/nestjs-libraries/src/database/prisma/subscriptions/subscription.service.ts b/libraries/nestjs-libraries/src/database/prisma/subscriptions/subscription.service.tsindex ff9c962aa..58f32662a 100644--- a/libraries/nestjs-libraries/src/database/prisma/subscriptions/subscription.service.ts+++ b/libraries/nestjs-libraries/src/database/prisma/subscriptions/subscription.service.ts@@ -137,7 +137,14 @@ export class SubscriptionService {allChannels.length <= totalChannels &&totalChannels > (getCurrentSubscription?.totalChannels || 0)) {- await this._integrationService.enableAllIntegrations(organizationId);+ try {+ await this._integrationService.enableAllIntegrations(organizationId);+ } catch (err) {+ console.error(+ 'Error enabling channels after subscription change:',+ err+ );+ }}if (from.team_members && !to.team_members) {@@ -212,9 +219,16 @@ export class SubscriptionService {allChannels.length <= totalChannels &&totalChannels > (getCurrentSubscription?.totalChannels || 0)) {- await this._integrationService.enableAllIntegrations(- getOrgByCustomerId?.id!- );+ try {+ await this._integrationService.enableAllIntegrations(+ getOrgByCustomerId?.id!+ );+ } catch (err) {+ console.error(+ 'Error enabling channels after subscription change:',+ err+ );+ }}if (from.team_members && !to.team_members) {@@ -264,6 +278,7 @@ export class SubscriptionService {return {};}} catch (e) {+ console.error('Error modifying subscription:', e);return {};}}@@ -308,6 +323,7 @@ export class SubscriptionService {return {};}} catch (e) {+ console.error('Error modifying subscription:', e);return {};}