- Modified ensureDodoCustomer() to query existing customers by email before creating new ones - This prevents duplicate customer records when dodoCustomerId is missing from database - Added logging for both found existing customers and new customer creation - Updated subscription lookup to check multiple statuses (active, pending, on_hold) - Should resolve paid-to-paid and paid-to-free plan change issues for users missing subscription IDs
719 KiB
719 KiB