Skip to content

Commit

Permalink
FIX return latLang on meadows
Browse files Browse the repository at this point in the history
  • Loading branch information
fbury-hec committed Mar 12, 2024
1 parent df91879 commit e9323f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/data_store/mysql/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (m stor) UpdateTree(id string, input model.TreeInput) (*model.Tree, error)
func (m stor) GetTreesOfMeadow(id string) ([]*model.Tree, error) {

trees := []*model.Tree{}
err := db.Select(&trees, "SELECT id, name FROM trees WHERE meadow_id = ? ORDER BY name", id)
err := db.Select(&trees, "SELECT id, name, lang, lat FROM trees WHERE meadow_id = ? ORDER BY name", id)

return trees, err
}
Expand Down

0 comments on commit e9323f8

Please sign in to comment.