S3Adapter: expose the object and use => for s3.upload callback
This commit is contained in:
@@ -40,7 +40,7 @@ S3Adapter.prototype.create = function(config, filename, data) {
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
this.s3.upload(params, function(err, data) {
|
||||
this.s3.upload(params, (err, data) => {
|
||||
if (err !== null) return reject(err);
|
||||
resolve(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user