mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 11:03:49 +00:00
feat(#22): Add todo comment and strong typing
This commit is contained in:
@@ -57,8 +57,11 @@ export const POST: RequestHandler = async ({ request }) => {
|
||||
break;
|
||||
case 'customer.created':
|
||||
case 'customer.updated':
|
||||
console.log(event.data.object);
|
||||
await createOrRetrieveCustomer(event.data.object);
|
||||
// TODO - this should be passing the supabase customer uuid not the stripe customer id
|
||||
await createOrRetrieveCustomer({
|
||||
email: (event.data.object as stripe.Customer).email!,
|
||||
uuid: event.data.object.id
|
||||
});
|
||||
break;
|
||||
case 'customer.subscription.created':
|
||||
case 'customer.subscription.updated':
|
||||
|
||||
Reference in New Issue
Block a user