Skip to content

Commit

Permalink
mark the last sync as succeeded when creating the connector (#9531)
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi authored Dec 19, 2024
1 parent 55829d1 commit 0643318
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connectors/src/connectors/zendesk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
import { dataSourceConfigFromConnector } from "@connectors/lib/api/data_source_config";
import { ExternalOAuthTokenError } from "@connectors/lib/error";
import { ZendeskTimestampCursor } from "@connectors/lib/models/zendesk";
import { syncSucceeded } from "@connectors/lib/sync_status";
import logger from "@connectors/logger/logger";
import { ConnectorResource } from "@connectors/resources/connector_resource";
import {
Expand Down Expand Up @@ -113,6 +114,9 @@ export class ZendeskConnectorManager extends BaseConnectorManager<null> {
throw result.error;
}

// artificially marking the sync as succeeded since we can create the connection without syncing anything
await syncSucceeded(connector.id);

return new Ok(connector.id.toString());
}

Expand Down

0 comments on commit 0643318

Please sign in to comment.