🐛 Fix notification order... again

This commit is contained in:
2024-10-16 21:07:53 +08:00
parent 10d977ab23
commit e83e92b054
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ func getNotifications(c *fiber.Ctx) error {
if err := tx.
Limit(take).
Offset(offset).
Order("read_at DESC, created_at").
Order("read_at DESC, created_at DESC").
Find(&notifications).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}