Skip to content

Commit

Permalink
search by vpsName
Browse files Browse the repository at this point in the history
  • Loading branch information
coddmeistr committed Dec 9, 2024
1 parent f98bdc9 commit a912506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/instances/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,12 @@ func getFiltersQuery(filters map[string]*structpb.Value, bindVars map[string]int
|| acc._key LIKE "%s"
|| node._key LIKE "%s"
|| node.config.domain LIKE "%s"
|| node.data.vpsName LIKE "%s"
|| CONTAINS(TO_STRING(node.state.meta.networking.public), "%s")
|| CONTAINS(TO_STRING(node.state.meta.networking.private), "%s")
|| CONTAINS(TO_STRING(node.data.ips_history.public), "%s")
|| CONTAINS(TO_STRING(node.data.ips_history.private), "%s")`,
"%"+param+"%", "%"+param+"%", "%"+param+"%", "%"+param+"%", "%"+param+"%", param, param, param, param)
"%"+param+"%", "%"+param+"%", "%"+param+"%", "%"+param+"%", "%"+param+"%", "%"+param+"%", param, param, param, param)

} else if key == "email" {
query += fmt.Sprintf(` FILTER CONTAINS(acc.data.email, "%s")`, val.GetStringValue())
Expand Down

0 comments on commit a912506

Please sign in to comment.