Skip to content

Commit

Permalink
🐛 Fix(custom): fix s3 delete bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #212
  • Loading branch information
Kuingsmile committed Jun 23, 2024
1 parent cd549e6 commit b30dc4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/utils/deleteFunc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export async function removeFileFromS3InMain(configMap: IStringKeyMap, dogeMode:
}
}
let result: any
try {
fileKey = decodeURIComponent(fileKey)
} catch (err: any) {}
try {
const client = new S3Client(s3Options)
const command = new DeleteObjectCommand({
Expand Down

0 comments on commit b30dc4d

Please sign in to comment.