fix: re-adding location to event

Figured it out
This commit is contained in:
2025-03-21 14:08:06 +00:00
parent 7b64563647
commit 58f7afb521

View File

@ -31,7 +31,11 @@ type ImageWithProperties struct {
Locations []model.Locations 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) { 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 { if err != nil {
return images, err return images, err
} }
return images, err return images, err
} }