mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 11:41:44 +10:00
wip: what if user ids were strings instead of numbers
This commit is contained in:
@ -91,7 +91,7 @@ export const getStripeCustomerIdByUser = async (user: User) => {
|
||||
return await getStripeCustomerByUser(user).then((session) => session.stripeCustomer.id);
|
||||
};
|
||||
|
||||
const syncStripeCustomerSubscriptions = async (userId: number, stripeCustomerId: string) => {
|
||||
const syncStripeCustomerSubscriptions = async (userId: string, stripeCustomerId: string) => {
|
||||
const stripeSubscriptions = await stripe.subscriptions.list({
|
||||
customer: stripeCustomerId,
|
||||
});
|
||||
|
||||
@ -6,7 +6,7 @@ import type { Subscription } from '@documenso/prisma/client';
|
||||
import { getEnterprisePlanPriceIds } from '../stripe/get-enterprise-plan-prices';
|
||||
|
||||
export type IsUserEnterpriseOptions = {
|
||||
userId: number;
|
||||
userId: string;
|
||||
teamId?: number;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user