- Fix critical bug: token refresh now uses ZOHO_ACCOUNTS_DOMAIN (accounts.zoho.com) instead of API domain (www.zohoapis.com). The OAuth token endpoint lives on a different domain. - Remove unnecessary redirect_uri from refresh token request - Add ZOHO_ACCOUNTS_DOMAIN env var (separate from API domain) - Split contact name into First_Name/Last_Name for Zoho schema - Replace Service_Interest (non-standard field) with Description + Lead_Source: Website (standard picklist value) - Switch from Insert to Upsert API with duplicate_check_fields: [Email] so duplicate submissions update instead of error - Add trigger: ['workflow'] for explicit workflow control - Add token refresh retry (1 retry on transient failure) - Add ZOHO_CASES_ENABLED env var for future Cases forwarding - Update .env.example with full Zoho config documentation - Update FUTURE.md with detailed Phase 7 Zoho integration plan - Remove obsolete ZOHO_REDIRECT_URI from Dockerfile |
||
|---|---|---|
| .. | ||
| db.js | ||
| index.js | ||