mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 02:32:00 +10:00
chore: update pr based on review
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
import { stripe } from '@documenso/lib/server-only/stripe';
|
||||
import type { User } from '@documenso/prisma/client';
|
||||
|
||||
export const deleteStripeCustomer = async (user: User) => {
|
||||
if (!user.customerId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return await stripe.customers.del(user.customerId);
|
||||
};
|
||||
Reference in New Issue
Block a user