Permalink
Browse files

Include metadata in saved file response

  • Loading branch information...
1 parent bd8d754 commit f0b7d85c251871ec2d2e7c76296c29e98319b5b3 @kriszyp committed Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 media.js
View
@@ -142,7 +142,7 @@ exports.saveFile = function(file, directives){
}
return when(exports.getFileModel().put(file, directives), function(result){
var id = result.id || result;
- result = {id: id};
+ result = {id: id, getMetadata: result.getMetadata};
Object.defineProperty(result, "getMetadata",{
value: function(){
return metadata;

0 comments on commit f0b7d85

Please sign in to comment.