Skip to content

Commit

Permalink
Merge pull request #43 from cf15-t5/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
lutfianRhdn authored Aug 24, 2023
2 parents 5b8ca08 + 588a637 commit 09c5c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/EventService.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 09c5c44

Please sign in to comment.