Fix bug
This commit is contained in:
parent
54a5246061
commit
ee7ef89dfb
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ export default async function(file: DriveFile, isExpired = false) {
|
|||
if (file.webpublicUrl) {
|
||||
InternalStorage.del(file.webpublicAccessKey);
|
||||
}
|
||||
} else {
|
||||
} else if (!file.isRemote) {
|
||||
const minio = new Minio.Client(config.drive.config);
|
||||
|
||||
await minio.removeObject(config.drive.bucket, file.accessKey);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue