Fixed database extension

This commit is contained in:
2024-01-21 15:27:42 +02:00
parent c0f1ed6879
commit eb94ce4552
4 changed files with 4 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ func InitDB() {
var err error
dbPath := config.GetConfiguration().DatabaseFilePath
if dbPath == "" {
dbPath = "./data.db"
dbPath = "./data.sqlite"
}
db, err = gorm.Open(sqlite.Open(dbPath), &gorm.Config{})