summaryrefslogtreecommitdiff
path: root/storage/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/storage.go')
-rw-r--r--storage/storage.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/storage/storage.go b/storage/storage.go
index 253a4c2..ddb466d 100644
--- a/storage/storage.go
+++ b/storage/storage.go
@@ -54,7 +54,12 @@ func Init(items ...any) error {
return err
}
- return dbmap.CreateTablesIfNotExists()
+ err = dbmap.CreateTablesIfNotExists()
+ if err != nil {
+ return err
+ }
+
+ return SetupViews()
}
func register(item ...any) error {