diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 77aebcd..85c614e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,7 +4,7 @@ - @@ -178,7 +177,8 @@ - true diff --git a/pkg/internal/server/api/notifications_api.go b/pkg/internal/server/api/notifications_api.go index dfe1917..304230a 100644 --- a/pkg/internal/server/api/notifications_api.go +++ b/pkg/internal/server/api/notifications_api.go @@ -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(¬ifications).Error; err != nil { return fiber.NewError(fiber.StatusInternalServerError, err.Error()) }