Skip to content

Commit 88b14a9

Browse files
committed
url can & should be constructed during read
1 parent ae9f196 commit 88b14a9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.DS_Store

8 KB
Binary file not shown.

src/Schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ function getObjectType(obj) {
743743
case 'File' :
744744
if(obj.url && obj.name) {
745745
return 'file';
746-
} else {
746+
} else if(!obj.url){
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)