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