Merge remote-tracking branch 'origin/missing-dir' into quieter
This commit is contained in:
commit
e65bad8a4a
|
@ -22,7 +22,7 @@ module.exports.create = function (config={}) {
|
||||||
sequelize = new Sequelize(config.storeDatabaseUrl,{ logging: false });
|
sequelize = new Sequelize(config.storeDatabaseUrl,{ logging: false });
|
||||||
} else {
|
} else {
|
||||||
sequelize = new Promise(function (resolve, reject) {
|
sequelize = new Promise(function (resolve, reject) {
|
||||||
confDir = confDir.replace(/~\//, require('os').homedir());
|
confDir = confDir.replace(/~\//, require('os').homedir() + '/');
|
||||||
mkdirp(confDir, function (err) {
|
mkdirp(confDir, function (err) {
|
||||||
if (err) { reject(err); return; }
|
if (err) { reject(err); return; }
|
||||||
resolve(new Sequelize({ dialect: 'sqlite', storage: confDir + '/db.sqlite3', logging: false }));
|
resolve(new Sequelize({ dialect: 'sqlite', storage: confDir + '/db.sqlite3', logging: false }));
|
||||||
|
|
Loading…
Reference in New Issue