- Add buildCompaniesFilter() returning id > 0 in lib/utils/sync-helpers.ts - Route COMPANIES through buildCompaniesFilter on full sync instead of the generic buildActiveFilter (which applied isActive=true and missed inactive companies with tickets, causing tickets_company_id_fkey on weekly-full and full syncs since 2026-05-15) - hasAppliedFilters stays true (filter is non-empty), so soft-delete of companies is not triggered |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| auth-client.ts | ||
| auth-utils.ts | ||
| auth.ts | ||
| bootstrap.ts | ||
| permissions.ts | ||
| status-registry.ts | ||
| utils.ts | ||