mirror of https://github.com/grpc/grpc-node.git
Merge pull request #671 from murgatroid99/native_protojs6_map_fix
Native: Protobuf.js 6 loadObject: switch to mappable methodsArray
This commit is contained in:
commit
d7ee7796ec
|
@ -104,9 +104,9 @@ exports.getProtobufServiceAttrs = function getProtobufServiceAttrs(service,
|
|||
options) {
|
||||
var prefix = '/' + fullyQualifiedName(service) + '/';
|
||||
service.resolveAll();
|
||||
return common.zipObject(service.methods.map(function(method) {
|
||||
return common.zipObject(service.methodsArray.map(function(method) {
|
||||
return camelCase(method.name);
|
||||
}), service.methods.map(function(method) {
|
||||
}), service.methodsArray.map(function(method) {
|
||||
return {
|
||||
originalName: method.name,
|
||||
path: prefix + method.name,
|
||||
|
|
Loading…
Reference in New Issue