🐛 Fix(custom): fix s3 delete bug

ISSUES CLOSED: #212
This commit is contained in:
Kuingsmile 2024-06-23 19:04:08 +08:00
parent cd549e60c4
commit b30dc4dcfc

View File

@ -155,6 +155,9 @@ export async function removeFileFromS3InMain(configMap: IStringKeyMap, dogeMode:
} }
} }
let result: any let result: any
try {
fileKey = decodeURIComponent(fileKey)
} catch (err: any) {}
try { try {
const client = new S3Client(s3Options) const client = new S3Client(s3Options)
const command = new DeleteObjectCommand({ const command = new DeleteObjectCommand({