mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
changes for src and powerpack uuid null case
This commit is contained in:
parent
920c931860
commit
2bc5d25dc6
1 changed files with 6 additions and 2 deletions
|
|
@ -94,10 +94,14 @@ export class MessageInterface extends PlivoResourceInterface {
|
|||
}
|
||||
|
||||
let params = optionalParams || {};
|
||||
params.src = src;
|
||||
if (src) {
|
||||
params.src = src;
|
||||
}
|
||||
params.dst = _.isArray(dst) ? _.join(dst, '<') : dst;
|
||||
params.text = text;
|
||||
params.powerpackUUID = powerpackUUID;
|
||||
if (powerpackUUID) {
|
||||
params.powerpackUUID = powerpackUUID;
|
||||
}
|
||||
console.log(params)
|
||||
return super.create(params);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue