diff options
author | Steve <nilslice@gmail.com> | 2017-03-20 13:28:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 13:28:43 -0700 |
commit | 483d5f936e72fa8cb15564cb8aa073f3d43089d3 (patch) | |
tree | 8bb3d82f073022c48ad53a7f8528a0f60c391220 /system/api/update.go | |
parent | f6f6d6e05d9f5f209b6a3273eb6a57af1eb5f6a2 (diff) | |
parent | ac3a65292037c0583bec67738c6c2baff7829ec4 (diff) |
Merge pull request #102 from ponzu-cms/ponzu-dev
separate UpdateContent and SetContent
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 } |