mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 22:24:28 +00:00
refactor: fix lint on lib/web/imageRouter/s3.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
c8ffd2ab19
commit
3049c64066
@ -26,7 +26,7 @@ exports.uploadImage = function (imagePath, callback) {
|
|||||||
callback(new Error(err), null)
|
callback(new Error(err), null)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let params = {
|
const params = {
|
||||||
Bucket: config.s3bucket,
|
Bucket: config.s3bucket,
|
||||||
Key: path.join('uploads', path.basename(imagePath)),
|
Key: path.join('uploads', path.basename(imagePath)),
|
||||||
Body: buffer
|
Body: buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user