Skip to content

Commit

Permalink
fix: remove typo that was breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 28, 2017
1 parent 9c709e1 commit 411db61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/updateValidators.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module.exports = function(query, schema, castedDoc, options) {
var updatedPath = paths[j].replace('.$.', '.0.');
updatedPath = updatedPath.replace(/\.\$$/, '.0');
key = keys[i];
if (keys === '$set' || keys === '$setOnInsert' ||
keys === '$pull' || keys === '$pullAll') {
if (key === '$set' || key === '$setOnInsert' ||
key === '$pull' || key === '$pullAll') {
updatedValues[updatedPath] = flat[paths[j]];
} else if (key === '$unset') {
updatedValues[updatedPath] = undefined;
Expand Down

0 comments on commit 411db61

Please sign in to comment.