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 7c4611d0
authored
Mar 25, 2014
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of _.omit
1 parent
b26fce14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
lib/dialects/abstract/query.js
lib/dialects/abstract/query.js
View file @
7c4611d
...
@@ -361,9 +361,9 @@ module.exports = (function() {
...
@@ -361,9 +361,9 @@ module.exports = (function() {
primaryKeyAttribute
=
includeOptions
.
daoFactory
.
primaryKeyAttribute
primaryKeyAttribute
=
includeOptions
.
daoFactory
.
primaryKeyAttribute
}
}
data
.
forEach
(
function
(
row
)
{
data
.
forEach
(
function
parseRow
(
row
)
{
row
=
Dot
.
transform
(
row
)
row
=
Dot
.
transform
(
row
)
calleeData
=
_
.
omit
(
row
,
calleeDataIgnore
)
calleeData
=
row
// If there are :M associations included we need to see if the main result of the row has already been identified
// If there are :M associations included we need to see if the main result of the row has already been identified
if
(
options
.
checkExisting
)
{
if
(
options
.
checkExisting
)
{
...
@@ -402,6 +402,9 @@ module.exports = (function() {
...
@@ -402,6 +402,9 @@ module.exports = (function() {
}
}
existingResult
.
__children
[
attrName
].
push
(
row
[
attrName
])
existingResult
.
__children
[
attrName
].
push
(
row
[
attrName
])
// Remove from main
delete
existingResult
[
attrName
]
}
}
}
}
}
}
...
...
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