This commit is contained in:
Dave Horton
2020-01-17 09:25:41 -05:00
parent 0d4c1d9d8c
commit c1049943e1
5 changed files with 31 additions and 84 deletions

View File

@@ -10,7 +10,9 @@ function makeTask(logger, obj) {
const name = keys[0];
const data = obj[name];
logger.debug(data, `makeTask: ${name}`);
if (typeof data !== 'object') throw errBadInstruction;
if (typeof data !== 'object') {
throw errBadInstruction;
}
Task.validate(name, data);
switch (name) {
case TaskName.SipDecline: