diff pkg/imports/st.go @ 1920:3dca0ee97da6

Stretches import: Track new ids.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 18 Jan 2019 20:02:55 +0100
parents 8750f50b6cee
children 0ff9bd32c34c
line wrap: on
line diff
--- a/pkg/imports/st.go	Fri Jan 18 19:52:38 2019 +0100
+++ b/pkg/imports/st.go	Fri Jan 18 20:02:55 2019 +0100
@@ -207,6 +207,10 @@
 		}
 	}
 
+	if err := track(ctx, tx, importID, "waterway.stretches", id); err != nil {
+		return nil, err
+	}
+
 	feedback.Info("Storing stretch '%s' took %s", st.Name, time.Since(start))
 	if err := tx.Commit(); err != nil {
 		return nil, err