diff --git a/pkg/internal/server/api/whats_new_api.go b/pkg/internal/server/api/whats_new_api.go index 849f885..509e5e0 100644 --- a/pkg/internal/server/api/whats_new_api.go +++ b/pkg/internal/server/api/whats_new_api.go @@ -49,7 +49,7 @@ func getWhatsNew(c *fiber.Ctx) error { } var items []models.Event - if err := database.C. + if err := tx. Limit(take). Order("created_at DESC"). Preload("Sender").