Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Acar <[email protected]>
  • Loading branch information
fatih-acar committed Jul 1, 2024
1 parent a360e83 commit cd79ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/infrahub/core/query/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ async def query_init(self, db: InfrahubDatabase, **kwargs: Any) -> None:
AND %(branch_filter)s
WITH n, r
ORDER BY n.uuid, r.branch_level DESC, r.from DESC
WITH n, head(collect(r)) AS latest_r_root
WHERE latest_r_root.status = "active"
WITH n, head(collect(r)) AS rb
WHERE rb.status = "active"
""" % {"branch_filter": branch_filter}
self.add_to_query(query)
use_simple = False
Expand Down

0 comments on commit cd79ec6

Please sign in to comment.