diff --git a/services/event_service.go b/services/event_service.go index bd1403c..08e5432 100644 --- a/services/event_service.go +++ b/services/event_service.go @@ -70,6 +70,7 @@ func (service Service) FindAllEvents(ctx context.Context, filter gmodel.AllEvent table.Location.AllColumns, table.Address.AllColumns, table.Country.Name, + table.LocationImage.AllColumns, created_by_user_table.ID, created_by_user_table.Name, created_by_user_table.Avatar, @@ -90,6 +91,7 @@ func (service Service) FindAllEvents(ctx context.Context, filter gmodel.AllEvent INNER_JOIN(table.Location, table.Location.ID.EQ(table.Event.LocationID)). INNER_JOIN(table.Address, table.Address.ID.EQ(table.Location.AddressID)). INNER_JOIN(table.Country, table.Country.Code.EQ(table.Address.CountryCode)). + LEFT_JOIN(table.LocationImage, table.LocationImage.LocationID.EQ(table.Location.ID)). LEFT_JOIN(created_by_user_table, created_by_user_table.ID.EQ(table.Event.CreatedByID)). LEFT_JOIN(updated_by_user_table, updated_by_user_table.ID.EQ(table.Event.CreatedByID)), ).