Skip to content

Commit

Permalink
remove order()
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswot77 committed Apr 16, 2024
1 parent d50b299 commit 7298293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/client_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func (c *SquaredUpClient) GetNodes(dataSourceId string, nodeName string, allowNu
var gremlinQueryResults []GremlinQueryResult
for attempt := 1; attempt <= maxRetries; attempt++ {
rb := map[string]interface{}{
"gremlinQuery": "g.V().has('__configId', '" + dataSourceId + "').has('name', '" + nodeName + "').hasNot('__canonicalType').order().valueMap(true)",
"gremlinQuery": "g.V().has('__configId', '" + dataSourceId + "').has('name', '" + nodeName + "').hasNot('__canonicalType').valueMap(true)",
}

if nodeName == "" {
rb = map[string]interface{}{
"gremlinQuery": "g.V().has('__configId', '" + dataSourceId + "').hasNot('__canonicalType').order().valueMap(true)",
"gremlinQuery": "g.V().has('__configId', '" + dataSourceId + "').hasNot('__canonicalType').valueMap(true)",
}
}

Expand Down

0 comments on commit 7298293

Please sign in to comment.