File tree Expand file tree Collapse file tree
packages/microservices/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Logger } from '@nestjs/common/services/logger.service' ;
22import { loadPackage } from '@nestjs/common/utils/load-package.util' ;
3+ import { isObject } from '@nestjs/common/utils/shared.utils' ;
34import { Observable } from 'rxjs' ;
45import { GRPC_DEFAULT_URL } from '../constants' ;
56import { InvalidGrpcPackageException } from '../exceptions/errors/invalid-grpc-package.exception' ;
@@ -32,7 +33,10 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc {
3233 }
3334
3435 public getService < T extends { } > ( name : string ) : T {
35- const options = this . options as any ;
36+ const options : any = isObject ( this . options )
37+ ? { ...this . options , loader : '' }
38+ : { } ;
39+
3640 if ( ! this . grpcClient [ name ] ) {
3741 throw new InvalidGrpcServiceException ( ) ;
3842 }
You can’t perform that action at this time.
0 commit comments