fix: re-adding location to event

Figured it out
This commit is contained in:
2025-03-21 14:08:06 +00:00
parent 84881c5c2d
commit cf703f3eee

View File

@ -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
}