diff --git a/pkg/internal/server/api/posts_api.go b/pkg/internal/server/api/posts_api.go index 2eac566..6995822 100644 --- a/pkg/internal/server/api/posts_api.go +++ b/pkg/internal/server/api/posts_api.go @@ -30,7 +30,7 @@ func getPost(c *fiber.Ctx) error { } area := segments[0] alias := segments[1] - item, err = services.GetPostByAlias(tx, area, alias) + item, err = services.GetPostByAlias(tx, alias, area) } if err != nil {