From cba3fd1aa2a1e651911a408e526440018f396085 Mon Sep 17 00:00:00 2001 From: Thuan Vo Date: Tue, 26 Mar 2024 21:49:05 -0700 Subject: [PATCH] fix(orm): fix unwrap exception when using enum --- src/main/java/io/cryostat/discovery/DiscoveryNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/cryostat/discovery/DiscoveryNode.java b/src/main/java/io/cryostat/discovery/DiscoveryNode.java index 10901025a..35253e50f 100644 --- a/src/main/java/io/cryostat/discovery/DiscoveryNode.java +++ b/src/main/java/io/cryostat/discovery/DiscoveryNode.java @@ -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()) .singleResultOptional() .orElseGet( () -> environment(BaseNodeType.UNIVERSE.toString(), BaseNodeType.UNIVERSE));