UNPKG

@63pokupki/nodejs-common

Version:
19 lines 891 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const LogicSys_1 = require("../LogicSys"); const CacheSys_1 = require("../CacheSys"); const monitoring_lib_1 = require("@63pokupki/monitoring.lib"); /* LEGO ошибок */ function SubSysMiddleware(ctx) { ctx.sys.logicSys = new LogicSys_1.LogicSys(ctx); // Система логики ctx.sys.cacheSys = new CacheSys_1.CacheSys(ctx); // Система кеширования if (ctx.infrastructure.mqError) { ctx.sys.monitoringSys = new monitoring_lib_1.MonitoringSys(ctx.common.host_public, ctx.common.nameApp, ctx.infrastructure.mqError); // Система мониторинга } else { console.log('WARNING>>> - ctx.infrastructure.mqError не установлен'); } ctx.next(); } exports.default = SubSysMiddleware; //# sourceMappingURL=SubSysMiddleware.js.map