From 25eb0585d5cefbfc42a6b2bbf1ad3b6239798316 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 11 Dec 2024 22:54:06 +0800 Subject: [PATCH] :bug: Fix list related publisher api ignore filter --- pkg/internal/http/api/publishers_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/http/api/publishers_api.go b/pkg/internal/http/api/publishers_api.go index bd2aa5f..523f865 100644 --- a/pkg/internal/http/api/publishers_api.go +++ b/pkg/internal/http/api/publishers_api.go @@ -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()) }