From 4400f5e2c1da8b0080db4b7e7ac56501e3984b78 Mon Sep 17 00:00:00 2001 From: Antoine Moreaux Date: Fri, 20 Dec 2024 18:06:16 +0100 Subject: [PATCH] chore(workspace): document circular dependency workaround Added an explanatory comment detailing the specific circular dependency path to improve code readability and maintenance. This change does not affect functionality but aims to assist future developers in understanding the issue --- .../src/engine/core-modules/workspace/workspace.entity.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/twenty-server/src/engine/core-modules/workspace/workspace.entity.ts b/packages/twenty-server/src/engine/core-modules/workspace/workspace.entity.ts index ccd8b22a18..7198926784 100644 --- a/packages/twenty-server/src/engine/core-modules/workspace/workspace.entity.ts +++ b/packages/twenty-server/src/engine/core-modules/workspace/workspace.entity.ts @@ -22,6 +22,7 @@ import { PostgresCredentials } from 'src/engine/core-modules/postgres-credential import { WorkspaceSSOIdentityProvider } from 'src/engine/core-modules/sso/workspace-sso-identity-provider.entity'; import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity'; // This line is necessary to avoid a circular dependency issue. Need to deep dive +// ../app-token/app-token.entity.ts > ../user/user.entity.ts > ../key-value-pair/key-value-pair.entity.ts > workspace.entity.ts // eslint-disable-next-line import { User } from 'src/engine/core-modules/user/user.entity';