File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
packages/services/commerce/src/stripe-billing Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { addDays , startOfMonth } from 'date-fns' ;
2
- import { Stripe } from 'stripe' ;
3
2
import { z } from 'zod' ;
4
3
import { publicProcedure , router } from '../trpc' ;
5
4
@@ -202,19 +201,6 @@ export const stripeBillingRouter = router({
202
201
}
203
202
}
204
203
}
205
-
206
- const updateParams : Stripe . CustomerUpdateParams = { } ;
207
-
208
- if ( organizationBillingRecord . billingEmailAddress ) {
209
- updateParams . email = organizationBillingRecord . billingEmailAddress ;
210
- }
211
-
212
- if ( Object . keys ( updateParams ) . length > 0 ) {
213
- await ctx . stripeBilling . stripe . customers . update (
214
- organizationBillingRecord . externalBillingReference ,
215
- updateParams ,
216
- ) ;
217
- }
218
204
} else {
219
205
throw new Error (
220
206
`Failed to sync subscription for organization: failed to find find active record` ,
You can’t perform that action at this time.
0 commit comments