Commit 28845ae3 authored by ale's avatar ale

Query on atom_full_path

parent 59e40b7e
Pipeline #3648 passed with stages
in 2 minutes and 7 seconds
......@@ -215,7 +215,7 @@ func (s *Service) FindAtoms(ctx context.Context, req *tabacco.FindRequest) ([]*t
args = append(args, req.Host)
}
if req.Pattern != "" {
where = append(where, "atom_name LIKE ?")
where = append(where, "atom_full_path LIKE ?")
args = append(args, strings.Replace(req.Pattern, "*", "%", -1))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment