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) {
491491 case '$eq' :
492492 answer [ key ] = inArray ? transformInteriorAtom ( constraint [ key ] ) : transformTopLevelAtom ( constraint [ key ] ) ;
493493 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 ] } ` ) ;
495495 }
496496 break ;
497497
@@ -504,7 +504,7 @@ function transformConstraint(constraint, inArray) {
504504 answer [ key ] = arr . map ( value => {
505505 let result = inArray ? transformInteriorAtom ( value ) : transformTopLevelAtom ( value ) ;
506506 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 } ` ) ;
508508 }
509509 return result ;
510510 } ) ;
You can’t perform that action at this time.
0 commit comments