From 17a9834fe2dd345f3aae11daade1c0362e9c9e5b Mon Sep 17 00:00:00 2001 From: IgorPushka Date: Wed, 17 Jan 2024 16:33:04 +0300 Subject: [PATCH] Stage 2. equals method fix --- .../main/java/ru/practicum/event/service/EventServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java b/event-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java index 8a23a56..848a41b 100644 --- a/event-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java +++ b/event-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java @@ -272,7 +272,7 @@ public List getEventsPublic(String text, List categories .requestDate(LocalDateTime.now()) .build()); - if (categories != null && categories.size() == 1 && categories.get(0).equals(0L)) { + if (categories != null && categories.size() == 1 && categories.get(0).equals(0)) { categories = null; }