mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Add webhook trigger
This commit is contained in:
parent
fcbb44df98
commit
6ce6a85f13
1 changed files with 10 additions and 1 deletions
|
@ -76,7 +76,16 @@ namespace controllers\internals;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->get_model()->insert($call);
|
$new_call_id = $this->get_model()->insert($call);
|
||||||
|
if (!$new_call_id)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$internal_webhook = new Webhook($this->bdd);
|
||||||
|
$internal_webhook->trigger($id_user, \models\Webhook::TYPE_INBOUND_CALL, $call);
|
||||||
|
|
||||||
|
return $new_call_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue