Skip to content

Commit ed1c841

Browse files
committed
remove comments
1 parent 95d3d99 commit ed1c841

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

apps/sim/lib/auth/auth.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,6 @@ export const auth = betterAuth({
21882188
try {
21892189
resolvedSubscription = await ensureOrganizationForTeamSubscription(subscription)
21902190
} catch (orgError) {
2191-
// Critical: Log detailed error for manual investigation
2192-
// This can happen if user joined another org between checkout start and completion
21932191
logger.error(
21942192
'[onSubscriptionComplete] Failed to ensure organization for team subscription',
21952193
{
@@ -2200,8 +2198,6 @@ export const auth = betterAuth({
22002198
stack: orgError instanceof Error ? orgError.stack : undefined,
22012199
}
22022200
)
2203-
// Re-throw to signal webhook failure - Stripe will retry
2204-
// This ensures we don't leave subscriptions in broken state silently
22052201
throw orgError
22062202
}
22072203

@@ -2228,8 +2224,6 @@ export const auth = betterAuth({
22282224
try {
22292225
resolvedSubscription = await ensureOrganizationForTeamSubscription(subscription)
22302226
} catch (orgError) {
2231-
// Log but don't throw - subscription updates should still process other logic
2232-
// The subscription may have been created with user ID if org creation failed initially
22332227
logger.error(
22342228
'[onSubscriptionUpdate] Failed to ensure organization for team subscription',
22352229
{
@@ -2239,7 +2233,6 @@ export const auth = betterAuth({
22392233
error: orgError instanceof Error ? orgError.message : String(orgError),
22402234
}
22412235
)
2242-
// Continue with original subscription - don't block other updates
22432236
}
22442237

22452238
try {

0 commit comments

Comments
 (0)