🐛 Bug fix on wrong order of parameters in query

This commit is contained in:
LittleSheep 2024-08-17 17:12:04 +08:00
parent 2470c4ac53
commit c55d0579f5

View File

@ -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 {