diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-26 13:07:30 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-26 13:07:30 -0700 |
commit | 319322acc70a79772f28ec03b8618cb507664426 (patch) | |
tree | 7d6e76095b2d4bf3780a5dcd44aa5506ef2217b7 | |
parent | 1c2b789b328777b2b82ab32e632271dcf7e074e3 (diff) |
implementation of insert content update to support types with no prior id
-rw-r--r-- | system/db/content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go index 71184af..f41d7bb 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -92,7 +92,7 @@ func insert(ns string, data url.Values) (int, error) { if err != nil { return err } - data.Add("id", cid) + data.Set("id", cid) j, err := postToJSON(ns, data) if err != nil { |