fix: wrong object delete
This commit is contained in:
parent
a6910de555
commit
25f6d94fae
1 changed files with 1 additions and 3 deletions
|
|
@ -484,9 +484,7 @@ export class UserController extends Controller {
|
||||||
stream.on("error", () => reject(new Error("MinIO error.")));
|
stream.on("error", () => reject(new Error("MinIO error.")));
|
||||||
}).then((list) => {
|
}).then((list) => {
|
||||||
list.map(async (v) => {
|
list.map(async (v) => {
|
||||||
await minio.removeObject(MINIO_BUCKET, `${attachmentLocation(userId)}/${v}`, {
|
await minio.removeObject(MINIO_BUCKET, v, { forceDelete: true });
|
||||||
forceDelete: true,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue