Explorar o código

fix: correct query parameter name for Shopify OAuth phoneNumberId #65

Claude hai 5 meses
pai
achega
50edacaf93
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      shopcall.ai-main/src/components/ShopifyConnect.tsx

+ 2 - 2
shopcall.ai-main/src/components/ShopifyConnect.tsx

@@ -74,9 +74,9 @@ export function ShopifyConnect({ onClose }: ShopifyConnectProps) {
 
       const session = JSON.parse(sessionData);
 
-      // Call the OAuth initiation Edge Function with phone_number_id
+      // Call the OAuth initiation Edge Function with phoneNumberId
       const response = await fetch(
-        `${API_URL}/oauth-shopify?action=init&shop=${encodeURIComponent(normalizedDomain)}&phone_number_id=${encodeURIComponent(phoneNumberId)}`,
+        `${API_URL}/oauth-shopify?action=init&shop=${encodeURIComponent(normalizedDomain)}&phoneNumberId=${encodeURIComponent(phoneNumberId)}`,
         {
           method: 'GET',
           headers: {