check if there is standby request related to token

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/275/head
Maxence Lange 2018-12-24 09:48:26 -01:00
rodzic da8e1ab9a3
commit 02687476ff
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -227,7 +227,10 @@ class ActivityService {
return '';
}
$this->curlService->asyncWithToken($token);
$requests = $this->queueService->getRequestFromToken($token, RequestQueue::STATUS_STANDBY);
if (sizeof($requests) > 0) {
$this->curlService->asyncWithToken($token);
}
return $token;
}