mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: add logging
This commit is contained in:
@ -39,7 +39,9 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
|
|
||||||
// Create the Stripe customer and attach it to the user if it doesn't exist.
|
// Create the Stripe customer and attach it to the user if it doesn't exist.
|
||||||
if (user.customerId === null && IS_BILLING_ENABLED()) {
|
if (user.customerId === null && IS_BILLING_ENABLED()) {
|
||||||
await getStripeCustomerByUser(user);
|
await getStripeCustomerByUser(user).catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
signOut: async ({ token }) => {
|
signOut: async ({ token }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user