oneuptime/probe/workers/containerSecurity.js
2020-06-16 20:02:28 +01:00

14 lines
367 B
JavaScript

const ErrorService = require('../utils/errorService');
const ContainerService = require('../utils/containerService');
module.exports = {
scan: async security => {
try {
await ContainerService.scan(security);
} catch (error) {
ErrorService.log('containerSecurity.scan', error);
throw error;
}
},
};