Previously, all picklist syncs (Statuses, Issue Types, Sub-Issue Types, Work Types) incorrectly reported all records as 'added' even on subsequent syncs. The issue was that bulkUpsert returns total rowCount without distinguishing between inserts and updates. Fix: - Query existing values before upserting - Calculate recordsAdded = new values not in existing set - Calculate recordsUpdated = values already in existing set - Applied to all 4 picklist sync methods This resolves the confusing sync history where Sub-Issue Types showed +805 on every sync instead of ~0 added, ~805 updated. |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| utils.ts | ||