From 830b7072373ac747e58e82f6caea7ad5781e4723 Mon Sep 17 00:00:00 2001 From: Alex <77341673+defectiveAi@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:39:54 +0100 Subject: [PATCH] quickfix: Ignore multiple consolidations. (#3862) --- .../GraphQL/DataLoaders/ConsolidationByActorFromIdBatchLoader.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/DataLoaders/ConsolidationByActorFromIdBatchLoader.cs b/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/DataLoaders/ConsolidationByActorFromIdBatchLoader.cs index 140610f0ee..c0c7245e62 100644 --- a/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/DataLoaders/ConsolidationByActorFromIdBatchLoader.cs +++ b/apps/dh/api-dh/source/DataHub.WebApi/GraphQL/DataLoaders/ConsolidationByActorFromIdBatchLoader.cs @@ -30,6 +30,7 @@ protected override async Task> return consolidations .Select(c => new KeyValuePair(c.ActorFromId, c)) + .DistinctBy(c => c.Key) .ToDictionary(); } }