- Add getValidCompanyIds() helper mirroring getValidResourceIds() - Add a new TICKETS validation block that nullifies ticket.company_id when the referenced company is not present (is_deleted=false) in the Pulse mirror, instead of letting tickets_company_id_fkey roll back the bulkUpsert transaction - Block runs after the existing recordsWithoutCompany filter and before the existing resource-FK nullification block (correct ordering) - Belt-and-suspenders on top of Task 1: covers hard-deleted-in-Autotask companies that Task 1's widening still won't fetch |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| auth-client.ts | ||
| auth-utils.ts | ||
| auth.ts | ||
| bootstrap.ts | ||
| permissions.ts | ||
| status-registry.ts | ||
| utils.ts | ||