Skip to content
Snippets Groups Projects

WotWizard compliance with Duniter 1.7

3 files
+ 32
2
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
1
@@ -123,6 +123,7 @@ export const Directory = {
INSTANCE_NAME: getDomain(opts.mdb),
INSTANCE_HOME: getHomePath(opts.mdb, opts.home),
GET_FILE_PATH: (fileSubPath: string, home = '') => path.join(home || Directory.INSTANCE_HOME, fileSubPath),
INSTANCE_HOMELOG_FILE: getLogsPath(opts.mdb, opts.home),
DUNITER_DB_NAME: 'duniter',
LOKI_DB_DIR: 'loki',
@@ -136,7 +137,7 @@ export const Directory = {
return new SQLiteDriver(':memory:')
}
// Or file
const sqlitePath = path.join(home || Directory.INSTANCE_HOME, dbName)
const sqlitePath = Directory.GET_FILE_PATH(dbName, home)
return new SQLiteDriver(sqlitePath)
},
Loading