Skip to content

Commit

Permalink
Merge pull request #368 from code4romania/fix/336-public-events-start…
Browse files Browse the repository at this point in the history
…ing-date

fix: 336 - public events starting date in the future
  • Loading branch information
radulescuandrew authored Aug 21, 2024
2 parents 7124888 + 6edd3b7 commit 31cdf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/modules/event/repositories/event.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class EventRepository

// Get all events in progress from the organizations i am part or public events
query.andWhere(
'(event.endDate > :currentDate OR event.endDate IS NULL) AND event.startDate <= :currentDate AND ((event.isPublic = :isPublic AND event.organizationId NOT IN ' +
'(event.endDate > :currentDate OR event.endDate IS NULL) AND ((event.isPublic = :isPublic AND event.organizationId NOT IN ' +
query
.subQuery()
.select('vol.organizationId')
Expand Down

0 comments on commit 31cdf43

Please sign in to comment.