Merge branch 'sprint-8/gio' into 'feat/BE/Sprint-8'

fix api get all closing; fix get closing sapronak; fix get all maste data product

See merge request mbugroup/lti-api!115
This commit is contained in:
Hafizh A. Y.
2025-12-30 09:36:48 +00:00
4 changed files with 131 additions and 49 deletions
@@ -70,6 +70,7 @@ func (s productService) GetAll(c *fiber.Ctx, params *validation.Query) ([]entity
products, total, err := s.Repository.GetAll(c.Context(), offset, params.Limit, func(db *gorm.DB) *gorm.DB {
db = s.withRelations(db)
db = db.Where("is_visible = ?", true)
if params.Search != "" {
return db.Where("name LIKE ?", "%"+params.Search+"%")
}