🐛 Bug fixes

This commit is contained in:
2024-07-05 00:05:15 +08:00
parent f7063fc109
commit 77c1a029bd
3 changed files with 9 additions and 4 deletions

View File

@ -22,7 +22,7 @@ func listUser(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}
var items []models.Account
if err := database.C.Offset(offset).Limit(take).Find(&items).Error; err != nil {
if err := database.C.Offset(offset).Limit(take).Order("id ASC").Find(&items).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}