From 1edc64094e71a199e8c6774a274b2ae791183223 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 18 Oct 2016 13:59:05 -0700 Subject: 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 --- system/db/content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/db') 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) } } -- cgit v1.2.3