mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 15:37:21 +08:00
🔨 Refactor: refactored the import section of the code
This commit is contained in:
@@ -36,7 +36,7 @@ export default class AwsS3Api {
|
||||
})
|
||||
const result = await client.deleteObject({
|
||||
Bucket: bucketName,
|
||||
Key: fileKey.replace(/^\//, '')
|
||||
Key: fileKey.replace(/^\/+/, '')
|
||||
}).promise()
|
||||
return result.$response.httpResponse.statusCode === 204
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user