We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b289daa + 40ce9e4 commit bf04704Copy full SHA for bf04704
1 file changed
packages/microservices/server/server-grpc.ts
@@ -227,7 +227,7 @@ export class ServerGrpc extends Server implements CustomTransportStrategy {
227
const nameExtended = this.parseDeepServiceName(name, key);
228
const deepDefinition = grpcDefinition[key];
229
230
- const isServiceDefined = !isUndefined(deepDefinition.service);
+ const isServiceDefined = deepDefinition && !isUndefined(deepDefinition.service);
231
const isServiceBoolean = isServiceDefined
232
? deepDefinition.service !== false
233
: false;
0 commit comments