From a2530adc7879ac69cf4b83d07b1a21414d4a1c61 Mon Sep 17 00:00:00 2001 From: George Raduta Date: Wed, 23 Aug 2023 16:47:18 +0200 Subject: [PATCH] [OGUI-1400] Fix issue with deadline not being applied to unary call (#2092) * fixes a bug in which because an empty object was being sent as parameter instead of `undefined`, a deadline was not being applied when making a `NewEnvironment` unary call --- Control/lib/control-core/ControlService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/lib/control-core/ControlService.js b/Control/lib/control-core/ControlService.js index 231999e13..081710b20 100644 --- a/Control/lib/control-core/ControlService.js +++ b/Control/lib/control-core/ControlService.js @@ -168,7 +168,7 @@ class ControlService { * @param {JSON} options - optional parameters that are to be set to the gRPC call (e.g deadline) * @return {Promise} */ - executeCommandNoResponse(method, body = {}, options = {}) { + executeCommandNoResponse(method, body = {}, options = undefined) { return this.ctrlProx[method](body, options); }