From 8ae33344eb81a25aba160a2c9a4acc00f4f88011 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 3 Sep 2024 21:48:19 +0800 Subject: [PATCH] :sparkles: Messaging whats new preload channels --- pkg/internal/server/api/whats_new_api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/server/api/whats_new_api.go b/pkg/internal/server/api/whats_new_api.go index 5a77b52..84d57cf 100644 --- a/pkg/internal/server/api/whats_new_api.go +++ b/pkg/internal/server/api/whats_new_api.go @@ -52,6 +52,7 @@ func getWhatsNew(c *fiber.Ctx) error { Order("created_at DESC"). Preload("Sender"). Preload("Sender.Account"). + Preload("Channel"). Find(&items).Error; err != nil { return fiber.NewError(fiber.StatusBadRequest, err.Error()) }