Browse Source

fix: remove sync_orders and sync_customers from store_sync_config query #51

- Fixed database schema mismatch after GDPR compliance migration
- Removed references to dropped columns sync_orders and sync_customers
- This resolves 500 errors when fetching stores with include_sync_config=true
- Fixes WooCommerce shop connection issues
Claude 5 months ago
parent
commit
1468639
1 changed files with 1 additions and 3 deletions
  1. 1 3
      supabase/functions/api/index.ts

+ 1 - 3
supabase/functions/api/index.ts

@@ -60,9 +60,7 @@ serve(wrapHandler('api', async (req) => {
           store_sync_config (
             enabled,
             sync_frequency,
-            sync_products,
-            sync_orders,
-            sync_customers
+            sync_products
           )
         ` : '*')
         .eq('user_id', user.id)