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()) }