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

14 lines
375 B
JavaScript

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