diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 13:59:05 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 13:59:05 -0700 |
commit | 1edc64094e71a199e8c6774a274b2ae791183223 (patch) | |
tree | 72340b3eb878796fc0966e0df5aac29e035e78bc | |
parent | 16230b04aa14c88873eaf4c7b9596a7f850df0e9 (diff) |
implement Sort on all content types by Timestamp, DESC (latest to oldest) - run in goroutine on db.Init() as well as any time content is saved via SetContent
-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 542d539..890c7d6 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -265,7 +265,7 @@ func SortContent(namespace string) { return nil }) if err != nil { - log.Println("Error while updating db with sorted", namespace) + log.Println("Error while updating db with sorted", namespace, err) } } |