mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 08:04:51 +00:00
parent
9b1c2c2b0d
commit
262a024c21
@ -92,7 +92,7 @@ module.exports = {
|
||||
return new Promise((resolve, reject) => {
|
||||
// delete file on S3 bucket
|
||||
const path = file.path ? `${file.path}/` : '';
|
||||
S3.deleteObjects({
|
||||
S3.deleteObject({
|
||||
Key: `${path}${file.hash}${file.ext}`
|
||||
}, (err, data) => {
|
||||
if (err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user