🐛 Fix list related publisher api ignore filter

This commit is contained in:
LittleSheep 2024-12-11 22:54:06 +08:00
parent 050d3e3f89
commit 25eb0585d5

View File

@ -66,7 +66,7 @@ func listRelatedPublisher(c *fiber.Ctx) error {
}
var publishers []models.Publisher
if err := database.C.Find(&publishers).Error; err != nil {
if err := tx.Find(&publishers).Error; err != nil {
return fiber.NewError(fiber.StatusNotFound, err.Error())
}