fix: migrate billing to RR7

This commit is contained in:
David Nguyen
2025-02-21 01:16:23 +11:00
parent 991ce5ff46
commit 139bc265c7
10 changed files with 456 additions and 15 deletions

View File

@ -31,7 +31,9 @@ export const getStripeCustomerById = async (stripeCustomerId: string) => {
*
* Will create a Stripe customer and update the relevant user if one does not exist.
*/
export const getStripeCustomerByUser = async (user: User) => {
export const getStripeCustomerByUser = async (
user: Pick<User, 'id' | 'customerId' | 'email' | 'name'>,
) => {
if (user.customerId) {
const stripeCustomer = await getStripeCustomerById(user.customerId);