diff --git a/lib/services/entity-sync.ts b/lib/services/entity-sync.ts index 13c371e..c847b6b 100644 --- a/lib/services/entity-sync.ts +++ b/lib/services/entity-sync.ts @@ -102,10 +102,14 @@ export class EntitySyncService { entityLogger.error('Failed to get last sync time', {}, err); throw new Error(`Failed to determine sync time: ${err.message}`); } - } else if (isIncremental && !supportsIncremental) { - entityLogger.info(`${entity} does not support incremental sync, performing full sync instead`); - } else { - // For full sync, build filters + } + + // For full sync OR entities that don't support incremental, build filters + if (!isIncremental || (isIncremental && !supportsIncremental)) { + if (isIncremental && !supportsIncremental) { + entityLogger.info(`${entity} does not support incremental sync, performing full sync instead`); + } + const filters: Array<{ field: string; op: string; value: any }> = []; // Special handling for entities that require filters