fix search param name

This commit is contained in:
john 2025-08-10 18:20:44 +02:00
parent e8d5d50ae5
commit c49267e6c4
2 changed files with 2 additions and 2 deletions

View file

@ -3,4 +3,4 @@ using JetBrains.Annotations;
namespace Femto.Api.Controllers.Posts.Dto;
[PublicAPI]
public record GetPublicPostsSearchParams(Guid? From, int? Amount, Guid? AuthorId, string? Author);
public record GetPublicPostsSearchParams(Guid? After, int? Amount, Guid? AuthorId, string? Author);

View file

@ -25,7 +25,7 @@ public class PostsController(IBlogModule blogModule, ICurrentUserContext current
var res = await blogModule.Query(
new GetPostsQuery(currentUserContext.CurrentUser?.Id)
{
After = searchParams.From,
After = searchParams.After,
Amount = searchParams.Amount ?? 20,
AuthorId = searchParams.AuthorId,
Author = searchParams.Author,