summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-18 14:12:01 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-18 14:12:01 -0700
commit9ffc6f115deef547ae07a0837ef2cd1a70a5dd0f (patch)
treec5e429f17f60b6399b7f1383660eb7a767453916 /system/db/content.go
parentb73b8b065ca85fda4500eb0a4eeba9a0c6e71292 (diff)
updating call location of StoreContent to be centralized to db actions, rather than inside http handlers
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 890c7d6..caa2af3 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -65,6 +65,8 @@ func update(ns, id string, data url.Values) (int, error) {
return 0, nil
}
+ go SortContent(ns)
+
return cid, nil
}
@@ -105,6 +107,8 @@ func insert(ns string, data url.Values) (int, error) {
return 0, err
}
+ go SortContent(ns)
+
return effectedID, nil
}
@@ -154,6 +158,8 @@ func DeleteContent(target string) error {
return err
}
+ go SortContent(ns)
+
return nil
}