Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch(reject => {
metrics.methodFail(target.__rpcNamespace + '.' + propertyKey);
const errType = Server.errors.INVALID_REQUEST;
const errMsg = Server.errorMessages[errType];
const err = Server.prototype.error(errType, `${errMsg} [${reject}]`);
done(err);
});
},