Skip to content

Commit

Permalink
fix: remove group by on event trigger value
Browse files Browse the repository at this point in the history
  • Loading branch information
gulfaraz committed Aug 30, 2024
1 parent 8a25391 commit 8fb6bb0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions services/API-service/src/api/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,10 @@ export class EventService {
): SelectQueryBuilder<EventPlaceCodeEntity> {
return this.eventPlaceCodeRepo
.createQueryBuilder('event')
.select([
'area."countryCodeISO3"',
'event."eventName"',
'event."triggerValue"',
])
.select(['area."countryCodeISO3"', 'event."eventName"'])
.leftJoin('event.adminArea', 'area')
.groupBy('area."countryCodeISO3"')
.addGroupBy('event."eventName"')
.addGroupBy('event."triggerValue"')
.addSelect([
'to_char(MIN("startDate") , \'yyyy-mm-dd\') AS "startDate"',
'to_char(MAX("endDate") , \'yyyy-mm-dd\') AS "endDate"',
Expand Down

0 comments on commit 8fb6bb0

Please sign in to comment.