changeset 3629:1825a1bc9fb1 configuration

Fixed typo in SQL statement.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 11 Jun 2019 12:17:47 +0200
parents 6693be57b7a2
children 2467e619cf67
files pkg/controllers/system.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/system.go	Tue Jun 11 12:07:55 2019 +0200
+++ b/pkg/controllers/system.go	Tue Jun 11 12:17:47 2019 +0200
@@ -42,7 +42,7 @@
 	updateSettingSQL = `
 INSERT INTO system_admin.system_config (config_key, config_val)
 VALUES ($1, $2)
-ON CONFLICT (key) DO UPDATE SET config_val = $2`
+ON CONFLICT (config_key) DO UPDATE SET config_val = $2`
 )
 
 // System status end points