diff --git a/packages/core/src/repositories/documentLogsRepository/index.ts b/packages/core/src/repositories/documentLogsRepository/index.ts index 88becccc6..05dfde9a8 100644 --- a/packages/core/src/repositories/documentLogsRepository/index.ts +++ b/packages/core/src/repositories/documentLogsRepository/index.ts @@ -22,6 +22,7 @@ export class DocumentLogsRepository extends Repository { .innerJoin(commits, eq(commits.id, documentLogs.commitId)) .innerJoin(projects, eq(projects.id, commits.projectId)) .innerJoin(workspaces, eq(workspaces.id, projects.workspaceId)) + .where(eq(workspaces.id, this.workspaceId)) .as('documentLogsScope') }