Prechádzať zdrojové kódy

fix: store phone_number_id instead of phone_number for ShopRenter stores #99

The complete-shoprenter-install function was incorrectly storing the
phone number UUID in the phone_number text field instead of the
phone_number_id UUID field. This caused the API's join to phone_numbers
table to fail, resulting in "Nincs hozzárendelve" (Not assigned) being
displayed on the dashboard even though a phone number was selected.

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

Co-Authored-By: Claude <noreply@anthropic.com>
Claude 5 mesiacov pred
rodič
commit
fe096c4fdb

+ 1 - 1
supabase/functions/complete-shoprenter-install/index.ts

@@ -150,7 +150,7 @@ serve(wrapHandler('complete-shoprenter-install', async (req) => {
         token_expires_at: new Date(Date.now() + (pendingInstall.expires_in || 3600) * 1000).toISOString(),
         scopes: pendingInstall.scopes,
         is_active: true,
-        phone_number: finalPhoneNumberId,
+        phone_number_id: finalPhoneNumberId,
         alt_data: {
           client_id: shoprenterClientId,
           client_secret: shoprenterClientSecret,