File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Adapters/Storage/Mongo Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ function transformConstraint(constraint, inArray) {
491
491
case '$eq' :
492
492
answer [ key ] = inArray ? transformInteriorAtom ( constraint [ key ] ) : transformTopLevelAtom ( constraint [ key ] ) ;
493
493
if ( answer [ key ] === CannotTransform ) {
494
- throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom: ${ atom } ` ) ;
494
+ throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom: ${ constraint [ key ] } ` ) ;
495
495
}
496
496
break ;
497
497
@@ -504,7 +504,7 @@ function transformConstraint(constraint, inArray) {
504
504
answer [ key ] = arr . map ( value => {
505
505
let result = inArray ? transformInteriorAtom ( value ) : transformTopLevelAtom ( value ) ;
506
506
if ( result === CannotTransform ) {
507
- throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom: ${ atom } ` ) ;
507
+ throw new Parse . Error ( Parse . Error . INVALID_JSON , `bad atom: ${ value } ` ) ;
508
508
}
509
509
return result ;
510
510
} ) ;
You can’t perform that action at this time.
0 commit comments