diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-18 15:06:25 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-18 15:06:25 -0800 |
commit | e187d5ee6354acf40ac8178b0a8a631e80e35e8e (patch) | |
tree | f5bef4723710b6d79cef85974bafde149afb44e4 /system/db/init.go | |
parent | 7d87d40f8d0550331d1b19dea2c374ecfbc77d48 (diff) |
moving item and types into system/item package and updating throughout codebase
Diffstat (limited to 'system/db/init.go')
-rw-r--r-- | system/db/init.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/db/init.go b/system/db/init.go index fa2c42e..9a0c3e5 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -4,8 +4,8 @@ import ( "encoding/json" "log" - "github.com/bosssauce/ponzu/content" "github.com/bosssauce/ponzu/system/admin/config" + "github.com/bosssauce/ponzu/system/item" "github.com/boltdb/bolt" "github.com/nilslice/jwt" @@ -32,7 +32,7 @@ func Init() { err = store.Update(func(tx *bolt.Tx) error { // initialize db with all content type buckets & sorted bucket for type - for t := range content.Types { + for t := range item.Types { _, err := tx.CreateBucketIfNotExists([]byte(t)) if err != nil { return err @@ -86,7 +86,7 @@ func Init() { } go func() { - for t := range content.Types { + for t := range item.Types { SortContent(t) } }() |