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.")));
|
||||
}).then((list) => {
|
||||
list.map(async (v) => {
|
||||
await minio.removeObject(MINIO_BUCKET, `${attachmentLocation(userId)}/${v}`, {
|
||||
forceDelete: true,
|
||||
});
|
||||
await minio.removeObject(MINIO_BUCKET, v, { forceDelete: true });
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue