Skip to content

Commit

Permalink
implement mardown suport for event description
Browse files Browse the repository at this point in the history
  • Loading branch information
caioeverest committed Jan 31, 2024
1 parent 001bf1c commit 1c604e1
Show file tree
Hide file tree
Showing 6 changed files with 1,848 additions and 7,458 deletions.
8 changes: 4 additions & 4 deletions pkg/event/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ func (e *EventService) Get(
Select("events.*, array_agg(tags.tag) as tags, array_agg(venues.*) as venues").
Group("events.id, events.title, events.banner, events.description, events.href, events.type_of, events.begin_date, events.end_date, events.user_id, events.created_at, events.updated_at, events.deleted_at, \"User\".id").
Joins("User").
Joins("JOIN events_tags ON events_tags.event_id = events.id").
Joins("JOIN tags ON tags.id = events_tags.tag_id").
Joins("JOIN events_venues ON events_venues.event_id = events.id").
Joins("JOIN venues ON venues.id = events_venues.venue_id").
Joins("LEFT JOIN events_tags ON events_tags.event_id = events.id").
Joins("LEFT JOIN tags ON tags.id = events_tags.tag_id").
Joins("LEFT JOIN events_venues ON events_venues.event_id = events.id").
Joins("LEFT JOIN venues ON venues.id = events_venues.venue_id").
Preload("Attendees").
Preload("Tags", func(db *gorm.DB) *gorm.DB {
if len(tags) > 0 {
Expand Down
Loading

0 comments on commit 1c604e1

Please sign in to comment.