From a6a2eb0816135a0e1164546415b2e74cea2afdb3 Mon Sep 17 00:00:00 2001 From: Utkarsh Srivastava Date: Sat, 3 Apr 2021 22:11:16 +0530 Subject: [PATCH] fix patterns search for local provider Signed-off-by: Utkarsh Srivastava --- models/meshery_pattern_persister.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/meshery_pattern_persister.go b/models/meshery_pattern_persister.go index 998e31bd5a4..312894b024a 100644 --- a/models/meshery_pattern_persister.go +++ b/models/meshery_pattern_persister.go @@ -36,7 +36,7 @@ func (mpp *MesheryPatternPersister) GetMesheryPatterns(search, order string, pag if search != "" { like := "%" + strings.ToLower(search) + "%" - query = query.Where("(lower(meshery_pattern.name) like ?)", like) + query = query.Where("(lower(meshery_patterns.name) like ?)", like) } query.Table("meshery_patterns").Count(&count)