disable.js
310 Bytes
const zk = require('./zk');
const _ = require('lodash');
const logger = global.yoho.logger;
module.exports = async({user}, next) => {
const disable = _.get(zk, `${user.app}.sys.noLimiter`, false);
logger.debug('disable==>', disable);
if (disable) {
return;
}
return next();
};