Skip to content

Commit

Permalink
fix(orm): fix unwrap exception when using enum
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Apr 2, 2024
1 parent 8b2934f commit cba3fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/discovery/DiscoveryNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public int hashCode() {
}

public static DiscoveryNode getUniverse() {
return DiscoveryNode.find(NODE_TYPE, BaseNodeType.UNIVERSE)
return DiscoveryNode.find(NODE_TYPE, BaseNodeType.UNIVERSE.getKind())
.<DiscoveryNode>singleResultOptional()
.orElseGet(
() -> environment(BaseNodeType.UNIVERSE.toString(), BaseNodeType.UNIVERSE));
Expand Down

0 comments on commit cba3fd1

Please sign in to comment.