diff --git a/lib/utils.js b/lib/utils.js index afa30d3..4ed9bd0 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -5,7 +5,7 @@ const METHOD_PROPS = ['name', 'options', 'type', 'requestStream', 'responseStrea 'requestName', 'responseName', 'path', 'requestType', 'responseType', 'originalName'] function getCallTypeFromCall (call) { - const name = Object.getPrototypeOf(call)?.constructor?.name ?? '' + const name = Object.getPrototypeOf(call).constructor.name if (name.indexOf('ServerUnaryCall') === 0) { return CallType.UNARY