From ac3a65292037c0583bec67738c6c2baff7829ec4 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 20 Mar 2017 13:25:23 -0700 Subject: separate UpdateContent and SetContent to differentiate when data should be merged or replaced --- system/api/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/api') 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 } -- cgit v1.2.3