UNPKG

lexica-dialog-core

Version:
12 lines 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Utils_1 = require("../Utils"); const globalConfigMiddleware = async (context, next) => { const uni = 'GLOBAL'; const { configRepository } = context; const configs = await configRepository.findByUni(uni); context.uniConfigs = context.uniConfigs.merge(Utils_1.toConfigMap(configs)); await next(); }; exports.default = globalConfigMiddleware; //# sourceMappingURL=GlobalConfigMiddleware.js.map