summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-04-11 20:03:36 -0700
committerSteve Manuel <nilslice@gmail.com>2017-04-11 20:03:36 -0700
commit10ede97c593fe229745ae37175ec465c55561810 (patch)
tree751afab58bc721bbbd6e5adfbb8ef3c3575b44bf /system/db/content.go
parent39ed91df81073489b485fae9a437fdb74954c40b (diff)
parent3c277a7c41aed0fe3e59fa1ccfd19b48d810b545 (diff)
Merge branch 'master' of https://github.com/ponzu-cms/ponzu
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 994860f..a20a6c0 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -125,7 +125,7 @@ func update(ns, id string, data url.Values, existingContent *[]byte) (int, error
go func() {
// update data in search index
target := fmt.Sprintf("%s:%s", ns, id)
- err = UpdateSearchIndex(target, string(j))
+ err = UpdateSearchIndex(target, j)
if err != nil {
log.Println("[search] UpdateSearchIndex Error:", err)
}
@@ -253,7 +253,7 @@ func insert(ns string, data url.Values) (int, error) {
go func() {
// add data to seach index
target := fmt.Sprintf("%s:%s", ns, cid)
- err = UpdateSearchIndex(target, string(j))
+ err = UpdateSearchIndex(target, j)
if err != nil {
log.Println("[search] UpdateSearchIndex Error:", err)
}