diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-03-20 13:25:23 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-03-20 13:25:23 -0700 |
commit | ac3a65292037c0583bec67738c6c2baff7829ec4 (patch) | |
tree | 8bb3d82f073022c48ad53a7f8528a0f60c391220 /system/api/update.go | |
parent | f6f6d6e05d9f5f209b6a3273eb6a57af1eb5f6a2 (diff) |
separate UpdateContent and SetContent to differentiate when data should be merged or replaced
Diffstat (limited to 'system/api/update.go')
-rw-r--r-- | system/api/update.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/update.go b/system/api/update.go index f7f7346..9414ab4 100644 --- a/system/api/update.go +++ b/system/api/update.go @@ -161,9 +161,9 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) { // set specifier for db bucket in case content is/isn't Trustable var spec string - _, err = db.SetContent(t+spec+":"+id, req.PostForm) + _, err = db.UpdateContent(t+spec+":"+id, req.PostForm) if err != nil { - log.Println("[Update] error calling SetContent:", err) + log.Println("[Update] error calling UpdateContent:", err) res.WriteHeader(http.StatusInternalServerError) return } |