不要怂,就是干,撸起袖子干!

Commit 869fdae8 by Andy Edwards Committed by GitHub

fix: add missing [] to Promise.all calls (#12077)

1 parent 597fc8ae
Showing with 4 additions and 4 deletions
......@@ -180,16 +180,16 @@ class ConnectionManager {
debug('connection destroy');
},
destroyAllNow: () => {
return Promise.all(
return Promise.all([
this.pool.read.destroyAllNow(),
this.pool.write.destroyAllNow()
).then(() => { debug('all connections destroyed'); });
]).then(() => { debug('all connections destroyed'); });
},
drain: () => {
return Promise.all(
return Promise.all([
this.pool.write.drain(),
this.pool.read.drain()
);
]);
},
read: new Pool({
name: 'sequelize:read',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!