diff options
-rw-r--r-- | system/db/init.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/system/db/init.go b/system/db/init.go index d035510..5806622 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -33,8 +33,6 @@ func Init() { if err != nil { return err } - - go SortContent(t + "_sorted") } // init db with other buckets as needed @@ -72,6 +70,11 @@ func Init() { log.Fatal("Coudn't initialize db with buckets.", err) } + // sort all content into type_sorted buckets + for t := range content.Types { + go SortContent(t + "_sorted") + } + } // SystemInitComplete checks if there is at least 1 admin user in the db which |