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.
This commit is contained in:
root 2026-01-23 17:16:19 -05:00
parent 4f99de364a
commit 0dee311457

View file

@ -58,6 +58,12 @@ export class EntitySyncService {
syncId?: string
): Promise<EntitySyncStats> {
// 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);
}