Skip to content

Commit

Permalink
feat: added optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenKim-dev committed Jun 30, 2024
1 parent ce0b4fb commit 27d01d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/microservices/server/server-grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
let pattern = this.createPattern(serviceName, methodName, streaming);
let methodHandler = this.messageHandlers.get(pattern);
if (!methodHandler) {
const packageServiceName = grpcMethod.path?.split('/')[1];
const packageServiceName = grpcMethod.path?.split?.('/')[1];
pattern = this.createPattern(packageServiceName, methodName, streaming);
methodHandler = this.messageHandlers.get(pattern);
}
Expand Down

0 comments on commit 27d01d6

Please sign in to comment.