fix: re-adding location to event
Figured it out
This commit is contained in:
@ -31,7 +31,11 @@ type ImageWithProperties struct {
|
||||
|
||||
Locations []model.Locations
|
||||
|
||||
Events []model.Events
|
||||
Events []struct {
|
||||
model.Events
|
||||
|
||||
Location *model.Locations `alias:"Location.*"`
|
||||
}
|
||||
}
|
||||
|
||||
func getUserIdFromImage(ctx context.Context, dbPool *sql.DB, imageId uuid.UUID) (uuid.UUID, error) {
|
||||
@ -86,7 +90,6 @@ func (m UserModel) ListWithProperties(ctx context.Context, userId uuid.UUID) ([]
|
||||
if err != nil {
|
||||
return images, err
|
||||
}
|
||||
|
||||
return images, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user