From d562bc02259baa43f87a6ff6e94ee9e77f530e16 Mon Sep 17 00:00:00 2001 From: Jacky Wijaya Date: Sun, 17 May 2020 22:06:57 +0700 Subject: [PATCH] fix(microservices): enable grpc option value to accept 0 --- packages/microservices/client/client-grpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/microservices/client/client-grpc.ts b/packages/microservices/client/client-grpc.ts index 3c389d74b90..8c5f0bc20ad 100644 --- a/packages/microservices/client/client-grpc.ts +++ b/packages/microservices/client/client-grpc.ts @@ -125,7 +125,7 @@ export class ClientGrpcProxy extends ClientProxy implements ClientGrpc { this.options.keepalive, )) { const key = keepaliveKeys[optionKey]; - if (!key) { + if (key === undefined) { continue; } keepaliveOptions[key] = optionValue;