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:
parent
4f99de364a
commit
0dee311457
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue