🐛 Bug fixes of sort
This commit is contained in:
parent
9edc5d77a1
commit
3437d32273
@ -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).
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user