Quieter #13
|
@ -22,7 +22,7 @@ module.exports.create = function (config={}) {
|
|||
sequelize = new Sequelize(config.storeDatabaseUrl);
|
||||
} else {
|
||||
sequelize = new Promise(function (resolve, reject) {
|
||||
confDir = confDir.replace(/~\//, require('os').homedir());
|
||||
confDir = confDir.replace(/~\//, require('os').homedir() + '/');
|
||||
mkdirp(confDir, function (err) {
|
||||
if (err) { reject(err); return; }
|
||||
resolve(new Sequelize({ dialect: 'sqlite', storage: confDir + '/db.sqlite3' }));
|
||||
|
|
Loading…
Reference in New Issue