diff --git a/connectors/migrations/20240719_migrate_nango_connection.ts b/connectors/migrations/20240719_migrate_nango_connection.ts index 1a58601e0e7f..0ccd43b57697 100644 --- a/connectors/migrations/20240719_migrate_nango_connection.ts +++ b/connectors/migrations/20240719_migrate_nango_connection.ts @@ -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"; @@ -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,