From 0d58b88db82666b2cd340c45c975f74df3a02d5d Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sat, 23 May 2026 02:04:47 +0100 Subject: [PATCH] fix(integrations): don't filter per-user connections out of existing lookups --- .../src/core/integration/repos/integration-connection.repo.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/server/src/core/integration/repos/integration-connection.repo.ts b/apps/server/src/core/integration/repos/integration-connection.repo.ts index 1be4a02c8..bd3074138 100644 --- a/apps/server/src/core/integration/repos/integration-connection.repo.ts +++ b/apps/server/src/core/integration/repos/integration-connection.repo.ts @@ -35,7 +35,6 @@ export class IntegrationConnectionRepo { .selectAll() .where('integrationId', '=', integrationId) .where('userId', '=', userId) - .where('kind', '=', 'workspace') .executeTakeFirst(); } @@ -58,7 +57,6 @@ export class IntegrationConnectionRepo { .where('integrations.type', '=', integrationType) .where('integrations.deletedAt', 'is', null) .where('integrationConnections.userId', '=', userId) - .where('integrationConnections.kind', '=', 'workspace') .executeTakeFirst(); } @@ -160,7 +158,6 @@ export class IntegrationConnectionRepo { .where('refreshToken', 'is not', null) .where('tokenExpiresAt', 'is not', null) .where('tokenExpiresAt', '<', threshold) - .where('kind', '=', 'workspace') .execute(); }