From 3dc60ef78944807caf8d4583a563dfe4442e0db4 Mon Sep 17 00:00:00 2001 From: Ion Dormenco Date: Sat, 23 Nov 2024 17:04:14 +0200 Subject: [PATCH] Fix number of targeted observers --- api/src/Feature.Notifications/ListSent/Endpoint.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Feature.Notifications/ListSent/Endpoint.cs b/api/src/Feature.Notifications/ListSent/Endpoint.cs index 498a50b5c..67140a9d8 100644 --- a/api/src/Feature.Notifications/ListSent/Endpoint.cs +++ b/api/src/Feature.Notifications/ListSent/Endpoint.cs @@ -48,6 +48,8 @@ public override async Task> ExecuteAsync(Reques WHERE MN."NgoId" = @ngoId AND N."ElectionRoundId" = @electionRoundId + AND MN."ElectionRoundId" = @electionRoundId + AND MN."NgoId" = @ngoId GROUP BY N."Id", N."Title", N."Body", N."CreatedOn", U."DisplayName" ORDER BY N."CreatedOn" DESC