changeset 2255:33af355047e1

Approved gauge meassurement import: Unified file upload parameter to 'agm'.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 13 Feb 2019 17:47:33 +0100
parents b53206045699
children 0d272d7bcfb9
files client/src/components/ImportApprovedGaugeMeasurement.vue pkg/controllers/agmimports.go
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/ImportApprovedGaugeMeasurement.vue	Wed Feb 13 17:37:28 2019 +0100
+++ b/client/src/components/ImportApprovedGaugeMeasurement.vue	Wed Feb 13 17:47:33 2019 +0100
@@ -86,7 +86,7 @@
     submit() {
       if (!this.uploadFile) return;
       let formData = new FormData();
-      formData.append("approvedgm", this.uploadFile);
+      formData.append("agm", this.uploadFile);
       HTTP.post("/imports/agm", formData, {
         headers: {
           "X-Gemma-Auth": localStorage.getItem("token"),
--- a/pkg/controllers/agmimports.go	Wed Feb 13 17:37:28 2019 +0100
+++ b/pkg/controllers/agmimports.go	Wed Feb 13 17:47:33 2019 +0100
@@ -25,7 +25,7 @@
 )
 
 const (
-	approvedGaugeMeasurementsName   = "approvedgm"
+	approvedGaugeMeasurementsName   = "agm"
 	maxApprovedGaugeMeasurementSize = 25 * 1024 * 1024
 )