From b003ba2b75fa58c9f648d6369ad4d6c87be9f292 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 23 Jun 2024 16:27:00 -0500 Subject: [PATCH] temporary fix for pomelo ef/.net 8 query query translation --- Application/QueryHelpers/ClientResourceQueryHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/QueryHelpers/ClientResourceQueryHelper.cs b/Application/QueryHelpers/ClientResourceQueryHelper.cs index f9bff938..d760391a 100644 --- a/Application/QueryHelpers/ClientResourceQueryHelper.cs +++ b/Application/QueryHelpers/ClientResourceQueryHelper.cs @@ -91,9 +91,9 @@ public class ClientResourceQueryHelper : IResourceQueryHelper clientAlias.Key.LastConnection) : iqGroupedClientAliases.OrderBy(clientAlias => clientAlias.Key.LastConnection); - var clientIds = iqGroupedClientAliases.Select(g => g.Key.ClientId) + var clientIds = await iqGroupedClientAliases.Select(g => g.Key.ClientId) .Skip(query.Offset) - .Take(query.Count); + .Take(query.Count).ToListAsync(); // todo: this change was for a pomelo limitation and may be addressed in future version // this pulls in more records than we need, but it's more efficient than ordering grouped entities var clientLookups = await clientAliases