diff pkg/controllers/surveys.go @ 5572:3b842e951317 surveysperbottleneckid

change use from name of bottleneck to its id.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 20 Jul 2021 17:07:51 +0200
parents fc01cdaf056d
children 271888ef85bc
line wrap: on
line diff
--- a/pkg/controllers/surveys.go	Tue Jul 20 11:50:17 2021 +0200
+++ b/pkg/controllers/surveys.go	Tue Jul 20 17:07:51 2021 +0200
@@ -42,7 +42,7 @@
   LEFT JOIN waterway.gauges_reference_water_levels AS r
     ON s.depth_reference = r.depth_reference
       AND g.location = r.location AND g.validity = r.validity
-WHERE b.objnam = $1`
+WHERE b.bottleneck_id = $1`
 )
 
 func listSurveys(req *http.Request) (jr mw.JSONResult, err error) {