Skip to content

Commit

Permalink
Fix bug in GetMeshModelRelationship
Browse files Browse the repository at this point in the history
Signed-off-by: abdullah1308 <abdullahrafi.1308@gmail.com>
  • Loading branch information
abdullah1308 committed Jun 24, 2023
1 parent 532696b commit e755055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/meshmodel/core/v1alpha1/relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func GetMeshModelRelationship(db *database.Handler, f RelationshipFilter) (r []R
if f.Greedy {
finder = finder.Where("relationship_definition_dbs.kind LIKE ?", "%"+f.Kind+"%")
} else {
finder = finder.Where("relationship_definition_dbs.kind = ?", "%"+f.Kind+"%")
finder = finder.Where("relationship_definition_dbs.kind = ?", f.Kind)
}
}
if f.SubType != "" {
Expand Down

0 comments on commit e755055

Please sign in to comment.