🐛 Bug fixes of sort

This commit is contained in:
LittleSheep 2024-02-12 12:31:18 +08:00
parent 9edc5d77a1
commit 3437d32273
2 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@ func getEvents(c *fiber.Ctx) error {
}
if err := database.C.
Order("created_at desc").
Where(&models.ActionEvent{AccountID: user.ID}).
Limit(take).
Offset(offset).

View File

@ -21,6 +21,7 @@ func getChallenges(c *fiber.Ctx) error {
}
if err := database.C.
Order("created_at desc").
Where(&models.AuthChallenge{AccountID: user.ID}).
Limit(take).
Offset(offset).
@ -49,6 +50,7 @@ func getSessions(c *fiber.Ctx) error {
}
if err := database.C.
Order("created_at desc").
Where(&models.AuthSession{AccountID: user.ID}).
Limit(take).
Offset(offset).