From d1557f92c6e77029a323ebdbbf259c1ec9917849 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Fri, 16 Aug 2024 17:03:04 -0400 Subject: [PATCH] Fix GetContentsByCreator returning the same content multiple times --- src/Web/Features/Contents/Handlers/GetContentsByCreator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Web/Features/Contents/Handlers/GetContentsByCreator.cs b/src/Web/Features/Contents/Handlers/GetContentsByCreator.cs index 983d902..c9ffb50 100644 --- a/src/Web/Features/Contents/Handlers/GetContentsByCreator.cs +++ b/src/Web/Features/Contents/Handlers/GetContentsByCreator.cs @@ -49,7 +49,7 @@ public class GetContentsByCreatorHandler( if (req.LastId.HasValue) { - queryBuilder.AppendLine($"""AND content."Id" < '{req.LastId.Value}'"""); + queryBuilder.AppendLine($"""AND content."Id" > '{req.LastId.Value}'"""); } queryBuilder.AppendLine($"""