fixed imports

This commit is contained in:
Bronku 2025-08-06 19:27:00 +02:00
parent 8c640f7b6b
commit 4df52360e8
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import (
"time"
"github.com/Bronku/iroon/server"
"github.com/Bronku/iroon/store"
"github.com/BurntSushi/toml"
)
@ -37,7 +38,7 @@ func main() {
}
// load database
db, err := store.loadStore(conf.Database.File)
db, err := store.LoadStore(conf.Database.File)
if err != nil {
log.Panic(err)
}

View file

@ -11,7 +11,7 @@ import (
"gorm.io/gorm/logger"
)
func loadStore(dsn string) (*gorm.DB, error) {
func LoadStore(dsn string) (*gorm.DB, error) {
newLogger := logger.New(
log.New(os.Stdout, "\r\n", log.LstdFlags),
logger.Config{