Skip to content

Commit

Permalink
Perf improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-gross committed Apr 8, 2016
1 parent 610313f commit 810eb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ function untransformObject(schema, className, mongoObject, isNestedObject = fals
'expiresAt',
'_expiresAt',
];
if (_.includes(specialKeys, key) && isNestedObject) {
if (isNestedObject && _.includes(specialKeys, key)) {
restObject[key] = untransformObject(schema, className, mongoObject[key], true);
continue;
}
Expand Down

0 comments on commit 810eb8c

Please sign in to comment.