Skip to content

Commit

Permalink
skip alreayd migrated (#6361)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Jul 19, 2024
1 parent 743572e commit 572bb16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions connectors/migrations/20240719_migrate_nango_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { makeScript } from "scripts/helpers";
import { apiConfig } from "@connectors/lib/api/config";
import type { NangoConnectionResponse } from "@connectors/lib/nango_helpers";
import { getConnectionFromNango } from "@connectors/lib/nango_helpers";
import { isDualUseOAuthConnectionId } from "@connectors/lib/oauth";
import type { Logger } from "@connectors/logger/logger";
import { ConnectorResource } from "@connectors/resources/connector_resource";

Expand Down Expand Up @@ -174,6 +175,10 @@ async function migrateAllConnections(
workspaceId: connector.workspaceId,
});

if (isDualUseOAuthConnectionId(connector.connectionId)) {
localLogger.info("Skipping alreaydy migrated collection");
}

const migrationRes = await migrateConnectionId(
api,
provider,
Expand Down

0 comments on commit 572bb16

Please sign in to comment.