set audit level to moderate
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:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -36,7 +36,7 @@ pipeline {
|
||||
stage('Test & Security Audit') {
|
||||
steps {
|
||||
echo 'Start checking security vulnerabilities in npm packages'
|
||||
sh 'npm audit'
|
||||
sh 'npm audit --audit-level=moderate'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
// import { client } from '$lib/minio';
|
||||
import { client } from '$lib/minio';
|
||||
|
||||
// export async function DELETE({ params }) {
|
||||
// const vorgang = params.vorgang;
|
||||
export async function DELETE({ params }) {
|
||||
const vorgang = params.vorgang;
|
||||
|
||||
// const object_list = await new Promise((resolve, reject) => {
|
||||
// const res = [];
|
||||
// const items_str = client.listObjects('tatort', vorgang, true);
|
||||
const object_list = await new Promise((resolve, reject) => {
|
||||
const res = [];
|
||||
const items_str = client.listObjects('tatort', vorgang, true);
|
||||
|
||||
// items_str.on('data', (obj) => {
|
||||
// res.push(obj.name);
|
||||
// });
|
||||
items_str.on('data', (obj) => {
|
||||
res.push(obj.name);
|
||||
});
|
||||
|
||||
// items_str.on('error', reject);
|
||||
items_str.on('error', reject);
|
||||
|
||||
// items_str.on('end', async () => {
|
||||
// resolve(res);
|
||||
// });
|
||||
// });
|
||||
items_str.on('end', async () => {
|
||||
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