Pārlūkot izejas kodu

fix(integrations): remove non-existent currency column from phone_numbers query

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fszontagh 4 mēneši atpakaļ
vecāks
revīzija
0ff6b65be1
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      shopcall.ai-main/src/pages/IntegrationsRedirect.tsx

+ 1 - 2
shopcall.ai-main/src/pages/IntegrationsRedirect.tsx

@@ -27,7 +27,6 @@ interface PhoneNumber {
   location: string;
   phone_type: string; // 'local' or 'toll-free'
   price: number;
-  currency: string;
   is_available: boolean;
 }
 
@@ -395,7 +394,7 @@ export default function IntegrationsRedirect() {
         // Use Supabase client directly - RLS policy allows anon to read available phone numbers
         const { data: phoneData, error } = await supabase
           .from('phone_numbers')
-          .select('id, phone_number, country_code, country_name, location, phone_type, price, currency, is_available')
+          .select('id, phone_number, country_code, country_name, location, phone_type, price, is_available')
           .eq('is_active', true)
           .eq('is_available', true)
           .eq('country_code', selectedCountry)