From 2131c35a4892465c0518e58dea8375e2cf8e16d7 Mon Sep 17 00:00:00 2001 From: Lutfian Rhdn Date: Thu, 24 Aug 2023 14:46:36 +0700 Subject: [PATCH] bugfix:add ticket relation event :spakles: --- src/services/EventService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/EventService.py b/src/services/EventService.py index 0b5104d..c5b0154 100644 --- a/src/services/EventService.py +++ b/src/services/EventService.py @@ -42,7 +42,7 @@ def getEventById(self,id): event = eventRepository.getEventById(id) if not event: return EventService.failedOrSuccessRequest('failed', 404, 'Event not found') - data_dict = queryResultToDict([event],['user','category'])[0] + data_dict = queryResultToDict([event],['user','category','tickets'])[0] result = self._count_ticket_and_attendace([data_dict])[0] return EventService.failedOrSuccessRequest('success', 200, result) except Exception as e: