fix: [workflow:ms-teams-webhook] Patched to pass more data to ms-teams

new_widgets
Sami Mokaddem 2023-05-04 15:16:59 +02:00
parent 0f93fbaf8c
commit 23ab080605
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class Module_ms_teams_webhook extends Module_webhook
{
public $id = 'ms-teams-webhook';
public $name = 'MS Teams Webhook';
public $version = '0.2';
public $version = '0.3';
public $description = 'Perform callbacks to the MS Teams webhook provided by the "Incoming Webhook" connector';
public $icon_path = 'MS_Teams.png';
@ -40,7 +40,7 @@ class Module_ms_teams_webhook extends Module_webhook
protected function doRequest($url, $contentType, $data, $headers = [], $serverConfig = null)
{
$data = '{"text":"' . implode($data) . '"}';
$data = ['text' => JsonTool::encode($data)];
return parent::doRequest($url, $contentType, $data);
}
}