server/lib/service/service.load.js
Function load
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function load(gladys) {
const SERVICES_TO_LOAD = Object.keys(this.servicesFromFiles);
await Promise.all(
SERVICES_TO_LOAD.map(async (service) => {
const serviceToInsertOrUpdate = {