another fix for confirmHook

This commit is contained in:
Dave Horton
2022-04-03 21:52:09 -04:00
parent 5a584f50da
commit cf2100f925

View File

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