mirror of
https://github.com/JustKato/drive-health.git
synced 2026-04-30 01:42:29 +03:00
Fixed database extension
This commit is contained in:
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user