add Bytes to check
This commit is contained in:
@@ -762,6 +762,11 @@ function getObjectType(obj) {
|
|||||||
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, JSON.stringify(obj) + " is not a valid GeoPoint");
|
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, JSON.stringify(obj) + " is not a valid GeoPoint");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'Bytes' :
|
||||||
|
if(!obj.base64) {
|
||||||
|
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, 'Bytes type has no base64 field: ' + JSON.stringify(obj));
|
||||||
|
}
|
||||||
|
break;
|
||||||
default :
|
default :
|
||||||
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, 'invalid type: ' + obj.__type);
|
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, 'invalid type: ' + obj.__type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user