Skip to content

Commit

Permalink
Merge 7c4922c into 53c953b
Browse files Browse the repository at this point in the history
  • Loading branch information
AllieRays committed Jan 14, 2016
2 parents 53c953b + 7c4922c commit 8c600f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/fileStorage/AwsS3Storage.js
Expand Up @@ -52,8 +52,7 @@ class AwsS3Storage {
var params = {Bucket: this.awsBucket, Key: assetName};
return this.s3
.getObject(params)
.createReadStream()
}
.createReadStream()}
}

module.exports = AwsS3Storage;
2 changes: 2 additions & 0 deletions lib/plugins/fileStorage/LocalFiles.js
Expand Up @@ -20,6 +20,8 @@ class LocalFiles {
* @param {string} assetId - The id of the asset that needs to be written.
* @return {object} - The writeable stream to store the data.
*/


createWriteStream(assetId) {
return fs.createWriteStream(path.join(this.fileDataDirectory, assetId), {encoding: 'binary'});
}
Expand Down

0 comments on commit 8c600f7

Please sign in to comment.