Browse Source

Merge branch 'feature/tmr-group' of baishaojie/tmrgo into develop

xuyiping 1 năm trước cách đây
mục cha
commit
0620f8c682
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      module/group.go

+ 1 - 1
module/group.go

@@ -551,7 +551,7 @@ func NewSearchFeedTemplateList(ctx context.Context, req *pasturePb.SearchFeedTem
 	res := make([]*models.FeedTemplate, 0)
 
 	if req.Name != "" {
-		DBSession.Where("name like '%?%'", req.Name)
+		DBSession.Where("name like ?", "%"+req.Name+"%")
 	}
 
 	if req.CattleCategoryId > 0 {