bugfix: implement confirmHook for dial

This commit is contained in:
Dave Horton
2022-04-03 21:41:23 -04:00
parent befe910503
commit 5a584f50da

View File

@@ -409,8 +409,8 @@ class TaskDial extends Task {
this.span.setAttributes({'dial.target': JSON.stringify(this.target)}); this.span.setAttributes({'dial.target': JSON.stringify(this.target)});
this.target.forEach(async(t) => { this.target.forEach(async(t) => {
try { try {
t.url = t.url || this.confirmUrl; t.confirmHook = t.confirmHook || this.confirmUrl;
t.method = t.method || this.confirmMethod || 'POST'; //t.method = t.method || this.confirmMethod || 'POST';
if (t.type === 'teams') t.teamsInfo = teamsInfo; if (t.type === 'teams') t.teamsInfo = teamsInfo;
if (t.type === 'user' && !t.name.includes('@') && !fqdn) { if (t.type === 'user' && !t.name.includes('@') && !fqdn) {
const user = t.name; const user = t.name;