Skip to content

Commit 3f3542a

Browse files
committed
Fix: skip repository identity resolution for deleted projects in getSnapshot
Filter projectRows to only active (non-deleted) projects before resolving repository identities via git subprocesses. Deleted projects already fall back to repositoryIdentity: null via the Map.get() ?? null default.
1 parent 18b9087 commit 3f3542a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/server/src/orchestration/Layers/ProjectionSnapshotQuery.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,10 @@ const makeProjectionSnapshotQuery = Effect.gen(function* () {
658658
});
659659
}
660660

661+
const activeProjectRows = projectRows.filter((row) => row.deletedAt === null);
661662
const repositoryIdentities = new Map(
662663
yield* Effect.forEach(
663-
projectRows,
664+
activeProjectRows,
664665
(row) =>
665666
repositoryIdentityResolver
666667
.resolve(row.workspaceRoot)

0 commit comments

Comments
 (0)