From b15d257bceb8b460678469ad2724525e61d24abe Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 23 Oct 2017 14:12:52 -0700 Subject: [PATCH] Use async HTTP requests --- Notification/Hipchat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Notification/Hipchat.php b/Notification/Hipchat.php index d688349..c674ebe 100644 --- a/Notification/Hipchat.php +++ b/Notification/Hipchat.php @@ -37,12 +37,12 @@ public function notifyUser(array $user, $event_name, array $event_data) if ($event_name === TaskModel::EVENT_OVERDUE) { foreach ($event_data['tasks'] as $task) { $project = $this->projectModel->getById($task['project_id']); - $eventData['task'] = $task; - $this->httpClient->postJson($url, $this->getMessage($project, $event_name, $event_data)); + $event_data['task'] = $task; + $this->httpClient->postJsonAsync($url, $this->getMessage($project, $event_name, $event_data)); } } else { $project = $this->projectModel->getById($event_data['task']['project_id']); - $this->httpClient->postJson($url, $this->getMessage($project, $event_name, $event_data)); + $this->httpClient->postJsonAsync($url, $this->getMessage($project, $event_name, $event_data)); } } }