Skip to content
This repository has been archived by the owner on Feb 3, 2019. It is now read-only.

Commit

Permalink
Use async HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Oct 23, 2017
1 parent 4b2adb2 commit b15d257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Notification/Hipchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit b15d257

Please sign in to comment.