🐛 Fix featured post query statement issue
This commit is contained in:
parent
fb33f4abc9
commit
45d5ea5a68
@ -26,7 +26,7 @@ func listRecommendation(c *fiber.Ctx) error {
|
||||
})
|
||||
|
||||
tx := database.C.Where("id IN ?", postIdx)
|
||||
newPosts, err := services.ListPost(tx, featuredMax, 0, " DESC")
|
||||
newPosts, err := services.ListPost(tx, featuredMax, 0, "id ASC")
|
||||
if err != nil {
|
||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user