Fixed critical logic bug where Companies and Resources were not getting proper filters applied when falling back from incremental to full sync. Root Cause: - During scheduled incremental sync, Companies and Resources correctly identify they don't support incremental sync - However, the filter-building logic was in an else block that only executed for non-incremental syncs - This caused Companies and Resources to sync with NO filters at all - Autotask API now rejects queries without filters, returning: 'Value cannot be null. Parameter name: filters' Fix: - Restructured logic so filter building happens for BOTH: 1. Non-incremental (full) syncs 2. Incremental syncs that fall back to full sync - Companies and Resources now get active filters applied even during scheduled incremental syncs This resolves the scheduled sync failures for Companies, Resources, and all other entities that were failing due to the cascading effect of early failures. |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| utils.ts | ||