Skip to content

Commit 9e00a3a

Browse files
Fix: Review logs
1 parent 2d2b2d9 commit 9e00a3a

File tree

1 file changed

+2
-1
lines changed
  • supabase/functions/stripe-payment-methods

1 file changed

+2
-1
lines changed

supabase/functions/stripe-payment-methods/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ serve(async (req) => {
4646
const body = await req.json();
4747

4848
// Si aucune action spécifiée, c'est un GET via POST (pour compatibilité)
49-
if (!body.action) {
49+
if (!body || !body.action || body.action === undefined) {
50+
console.log('📋 POST sans action - Redirection vers GET');
5051
return await handleGetPaymentMethods(stripe, user.email);
5152
}
5253

0 commit comments

Comments
 (0)