From 4da1f4f89d52eea913eb109b66ff027a61e97b63 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 30 Sep 2020 15:37:49 -0400 Subject: [PATCH] bugfix: createCall REST API to Teams endpoint was being blocked --- lib/routes/api/accounts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/api/accounts.js b/lib/routes/api/accounts.js index 397c31b..9738eeb 100644 --- a/lib/routes/api/accounts.js +++ b/lib/routes/api/accounts.js @@ -75,6 +75,7 @@ function validateTo(to) { if (to && typeof to === 'object') { switch (to.type) { case 'phone': + case 'teams': if (typeof to.number === 'string') return; break; case 'user':