Fixed error where the local db instance would be written to crowsnest.sql/crowsnest.sql
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ func main() {
|
|||||||
useLocalDB := badger.GetUseLocalDB()
|
useLocalDB := badger.GetUseLocalDB()
|
||||||
if useLocalDB {
|
if useLocalDB {
|
||||||
// Use local database in current directory
|
// Use local database in current directory
|
||||||
dbPath = "./crowsnest.sqlite"
|
dbPath = "./"
|
||||||
zap.L().Info("Using local database", zap.String("path", dbPath))
|
zap.L().Info("Using local database", zap.String("path", dbPath))
|
||||||
} else {
|
} else {
|
||||||
// Use default database path
|
// Use default database path
|
||||||
|
|||||||
Reference in New Issue
Block a user