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.target.forEach(async(t) => {
try {
t.url = t.url || this.confirmUrl;
t.method = t.method || this.confirmMethod || 'POST';
t.confirmHook = t.confirmHook || this.confirmUrl;
//t.method = t.method || this.confirmMethod || 'POST';
if (t.type === 'teams') t.teamsInfo = teamsInfo;
if (t.type === 'user' && !t.name.includes('@') && !fqdn) {
const user = t.name;