From 1bd8a4d214b6de056376558f8239266eb521614e Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 20 Sep 2021 15:26:18 -0400 Subject: [PATCH] further fix for conf_hold_status --- lib/utils.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index ab3104e..e17017e 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -76,7 +76,7 @@ function validate(name, data) { const validateCallUpdate = (opts) => { const {call_hook, child_call_hook, call_status, listen_status, mute_status, whisper, conf_hold_status} = opts; - assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper, + assert.ok(call_hook || child_call_hook || call_status || listen_status || mute_status || whisper || conf_hold_status, `calls.update: invalid request ${JSON.stringify(opts)}`); if (call_status) assert.ok(['completed', 'no-answer'].includes(call_status), diff --git a/package-lock.json b/package-lock.json index c5d17ea..0707a56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jambonz/node-client", - "version": "0.2.2", + "version": "0.2.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@jambonz/node-client", - "version": "0.2.2", + "version": "0.2.8", "license": "MIT", "dependencies": { "bent": "^7.3.12", diff --git a/package.json b/package.json index 7998871..7d96cd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jambonz/node-client", - "version": "0.2.7", + "version": "0.2.8", "description": "", "main": "lib/index.js", "scripts": {