From 9128ddeea823550abc3df2d61460d2b72cf8fcc2 Mon Sep 17 00:00:00 2001 From: Arnaud Mengus Date: Thu, 30 May 2024 08:17:34 +0000 Subject: [PATCH] feat: Fix getByUuid and exists methods in AbstractRepository --- .../src/main/java/ai/dragon/repository/AbstractRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {