From c55d0579f5f89b242d41ce45b6041f0e109a254d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 17 Aug 2024 17:12:04 +0800 Subject: [PATCH] :bug: Bug fix on wrong order of parameters in query --- pkg/internal/server/api/posts_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {