diff --git a/backend/src/main/java/ai/dragon/repository/AbstractRepository.java b/backend/src/main/java/ai/dragon/repository/AbstractRepository.java index 566e1ec6..164636b6 100644 --- a/backend/src/main/java/ai/dragon/repository/AbstractRepository.java +++ b/backend/src/main/java/ai/dragon/repository/AbstractRepository.java @@ -58,7 +58,7 @@ public boolean exists(String uuid) { } public boolean exists(UUID uuid) { - return getByUuid(uuid) != null; + return getByUuid(uuid).isPresent(); } public Optional getByUuid(String uuid) {