Skip to content

Commit

Permalink
Include metadata in saved file response
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Aug 24, 2012
1 parent bd8d754 commit f0b7d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0b7d85

Please sign in to comment.