🐛 Fix featured post query statement issue

This commit is contained in:
LittleSheep 2024-12-10 00:04:01 +08:00
parent fb33f4abc9
commit 45d5ea5a68

View File

@ -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())
}