Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 869fdae8
authored
Apr 05, 2020
by
Andy Edwards
Committed by
GitHub
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add missing [] to Promise.all calls (#12077)
1 parent
597fc8ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/dialects/abstract/connection-manager.js
lib/dialects/abstract/connection-manager.js
View file @
869fdae
...
@@ -180,16 +180,16 @@ class ConnectionManager {
...
@@ -180,16 +180,16 @@ class ConnectionManager {
debug
(
'connection destroy'
);
debug
(
'connection destroy'
);
},
},
destroyAllNow
:
()
=>
{
destroyAllNow
:
()
=>
{
return
Promise
.
all
(
return
Promise
.
all
(
[
this
.
pool
.
read
.
destroyAllNow
(),
this
.
pool
.
read
.
destroyAllNow
(),
this
.
pool
.
write
.
destroyAllNow
()
this
.
pool
.
write
.
destroyAllNow
()
).
then
(()
=>
{
debug
(
'all connections destroyed'
);
});
]
).
then
(()
=>
{
debug
(
'all connections destroyed'
);
});
},
},
drain
:
()
=>
{
drain
:
()
=>
{
return
Promise
.
all
(
return
Promise
.
all
(
[
this
.
pool
.
write
.
drain
(),
this
.
pool
.
write
.
drain
(),
this
.
pool
.
read
.
drain
()
this
.
pool
.
read
.
drain
()
);
]
);
},
},
read
:
new
Pool
({
read
:
new
Pool
({
name
:
'sequelize:read'
,
name
:
'sequelize:read'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment