Родитель
93d227ad5a
Коммит
8f4c664edf
|
@ -108,7 +108,7 @@ MysqlStore.connect = function mysqlConnect(options) {
|
|||
options.mysql = mysql;
|
||||
var patcher = new MysqlPatcher(options);
|
||||
|
||||
return P.promisify(patcher.connect, patcher)().then(function() {
|
||||
return P.promisify(patcher.connect, {context: patcher})().then(function() {
|
||||
if (options.createSchema) {
|
||||
return updateDbSchema(patcher);
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ MysqlStore.connect = function mysqlConnect(options) {
|
|||
logger.error('checkDbPatchLevel', error);
|
||||
throw error;
|
||||
}).finally(function () {
|
||||
return P.promisify(patcher.end, patcher)();
|
||||
return P.promisify(patcher.end, {context: patcher})();
|
||||
}).then(function() {
|
||||
return new MysqlStore(options);
|
||||
});
|
||||
|
|
|
@ -427,9 +427,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"bluebird": {
|
||||
"version": "2.11.0",
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz",
|
||||
"integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE="
|
||||
"version": "3.5.2",
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz",
|
||||
"integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg=="
|
||||
},
|
||||
"bn.js": {
|
||||
"version": "1.3.0",
|
||||
|
@ -4980,6 +4980,13 @@
|
|||
"clone": "^0.1.18",
|
||||
"glob": "^5.0.3",
|
||||
"xtend": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": {
|
||||
"version": "2.11.0",
|
||||
"resolved": "http://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz",
|
||||
"integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE="
|
||||
}
|
||||
}
|
||||
},
|
||||
"nan": {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"node": ">=8"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "2.11.0",
|
||||
"bluebird": "3.5.2",
|
||||
"buf": "0.1.0",
|
||||
"commander": "2.15.1",
|
||||
"convict": "4.0.2",
|
||||
|
|
Загрузка…
Ссылка в новой задаче