test jenkins pipeline
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,24 +1,24 @@
|
|||||||
import { client } from '$lib/minio';
|
// import { client } from '$lib/minio';
|
||||||
|
|
||||||
export async function DELETE({ params }) {
|
// export async function DELETE({ params }) {
|
||||||
const vorgang = params.vorgang;
|
// const vorgang = params.vorgang;
|
||||||
|
|
||||||
const object_list = await new Promise((resolve, reject) => {
|
// const object_list = await new Promise((resolve, reject) => {
|
||||||
const res = [];
|
// const res = [];
|
||||||
const items_str = client.listObjects('tatort', vorgang, true);
|
// const items_str = client.listObjects('tatort', vorgang, true);
|
||||||
|
|
||||||
items_str.on('data', (obj) => {
|
// items_str.on('data', (obj) => {
|
||||||
res.push(obj.name);
|
// res.push(obj.name);
|
||||||
});
|
// });
|
||||||
|
|
||||||
items_str.on('error', reject);
|
// items_str.on('error', reject);
|
||||||
|
|
||||||
items_str.on('end', async () => {
|
// items_str.on('end', async () => {
|
||||||
resolve(res);
|
// resolve(res);
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
await client.removeObjects('tatort', object_list);
|
// await client.removeObjects('tatort', object_list);
|
||||||
|
|
||||||
return new Response(null, { status: 204 });
|
// return new Response(null, { status: 204 });
|
||||||
}
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user