summaryrefslogtreecommitdiff
path: root/system/api/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/api/update.go')
-rw-r--r--system/api/update.go4
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
}