There was an error while loading. Please reload this page.
1 parent 485d1ab commit 89877b4Copy full SHA for 89877b4
1 file changed
apps/sim/lib/auth/auth.ts
@@ -1041,11 +1041,11 @@ export const auth = betterAuth({
1041
}),
1042
after: createAuthMiddleware(async (ctx) => {
1043
if (!isBillingEnabled || ctx.path !== '/subscription/upgrade') return
1044
- const context = ctx.context as typeof ctx.context & {
+ const checkoutContext = ctx as typeof ctx & {
1045
billingCheckoutAdmissionClaim?: CheckoutAdmissionClaim
1046
}
1047
- if (context.billingCheckoutAdmissionClaim) {
1048
- await releaseCheckoutAdmission(context.billingCheckoutAdmissionClaim)
+ if (checkoutContext.billingCheckoutAdmissionClaim) {
+ await releaseCheckoutAdmission(checkoutContext.billingCheckoutAdmissionClaim)
1049
1050
1051
},
0 commit comments