oneuptime/ApplicationScanner/worker/main.ts
Nawaz Dhandala 710018c1a5
fix lint
2022-04-12 13:54:51 +01:00

21 lines
546 B
TypeScript
Executable File

import BackendAPI from '../Utils/api';
import ApplicationSecurity from './applicationSecurity';
export default {
runApplicationScan: async function (): void {
const securities = await BackendAPI.get(
'application/applicationSecurities'
);
if (securities && securities.length > 0) {
await Promise.all(
securities.map((security: $TSFixMe) => {
return ApplicationSecurity.scan(security);
})
);
}
return;
},
};