From 0dee3114578d993f6ebdecf9b711f54b304c20d8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Jan 2026 17:16:19 -0500 Subject: [PATCH] fix: add routing for Statuses and Work Types in syncEntity method The previous fix created the picklist sync methods but forgot to add routing in the syncEntity() method. This caused the sync service to still call the generic entity sync path instead of the picklist methods. Added routing for: - EntityType.STATUSES -> syncStatuses() - EntityType.WORK_TYPES -> syncWorkTypes() This completes the fix for the 404 errors on these picklist entities. --- lib/services/entity-sync.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/services/entity-sync.ts b/lib/services/entity-sync.ts index 1d9a691..12b3b53 100644 --- a/lib/services/entity-sync.ts +++ b/lib/services/entity-sync.ts @@ -58,6 +58,12 @@ export class EntitySyncService { syncId?: string ): Promise { // Route picklist entities to their specific sync methods + if (entity === EntityType.STATUSES) { + return await this.syncStatuses(isIncremental); + } + if (entity === EntityType.WORK_TYPES) { + return await this.syncWorkTypes(isIncremental); + } if (entity === EntityType.ISSUE_TYPES) { return await this.syncIssueTypes(isIncremental); }