diff --git a/connectors/src/connectors/zendesk/index.ts b/connectors/src/connectors/zendesk/index.ts index 6c28d0339f287..05eff3c2653ac 100644 --- a/connectors/src/connectors/zendesk/index.ts +++ b/connectors/src/connectors/zendesk/index.ts @@ -667,6 +667,7 @@ export class ZendeskConnectorManager extends BaseConnectorManager { /** * Marks the connector as unpaused in db and restarts the workflows. + * Does not trigger full syncs, only restart the incremental and gc workflows. */ async unpause(): Promise> { const { connectorId } = this; @@ -675,8 +676,8 @@ export class ZendeskConnectorManager extends BaseConnectorManager { logger.error({ connectorId }, "[Zendesk] Connector not found."); return new Err(new Error("Connector not found")); } - // reset the cursor here to trigger a full resync await connector.markAsUnpaused(); + // launch a gc and an incremental workflow (sync workflow without signals). return this.resume(); } diff --git a/connectors/src/connectors/zendesk/lib/sync_ticket.ts b/connectors/src/connectors/zendesk/lib/sync_ticket.ts index b7ca86abe5afb..f8cdcbd4579b6 100644 --- a/connectors/src/connectors/zendesk/lib/sync_ticket.ts +++ b/connectors/src/connectors/zendesk/lib/sync_ticket.ts @@ -185,11 +185,7 @@ ${comments ); author = null; } - return ` -[${comment?.created_at}] ${ - author ? `${author.name} (${author.email})` : "Unknown User" - }: -${comment.body}`; + return `[${comment?.created_at}] ${author ? `${author.name} (${author.email})` : "Unknown User"}:\n${comment.body}`; }) .join("\n")} `.trim();