Skip to content

Commit f60c6af

Browse files
committed
Fix bug to __type checking
1 parent 88b14a9 commit f60c6af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,9 @@ function getObjectType(obj) {
741741
}
742742
break;
743743
case 'File' :
744-
if(obj.url && obj.name) {
744+
if(obj.name) {
745745
return 'file';
746-
} else if(!obj.url){
746+
} else {
747747
let msg = obj.name? JSON.stringify(obj) + " is not a valid File" : "File has no name";
748748
throw new Parse.Error(Parse.Error.INCORRECT_TYPE, msg);
749749
}

0 commit comments

Comments
 (0)