Messaging whats new preload channels

This commit is contained in:
LittleSheep 2024-09-03 21:48:19 +08:00
parent 75f5eb1456
commit 8ae33344eb

View File

@ -52,6 +52,7 @@ func getWhatsNew(c *fiber.Ctx) error {
Order("created_at DESC"). Order("created_at DESC").
Preload("Sender"). Preload("Sender").
Preload("Sender.Account"). Preload("Sender.Account").
Preload("Channel").
Find(&items).Error; err != nil { Find(&items).Error; err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error()) return fiber.NewError(fiber.StatusBadRequest, err.Error())
} }