Jaroen'chea, you are good busy

This commit is contained in:
Jeroen De Meerleer 2017-04-17 09:39:33 +02:00
parent d60511970e
commit 16f72b47d4
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -44,6 +44,10 @@ $client = new \GuzzleHttp\Client();
$res = $client->request('GET', $jobnameResult[0]['url']); $res = $client->request('GET', $jobnameResult[0]['url']);
$statuscode = $res->getStatusCode();
$body = $res->getBody();
$timestamp = time();
$stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)"); $stmt = $db->prepare("INSERT INTO runs(job, statuscode, result, timestamp) VALUES(?, ?, ?, ?)");
$stmt->execute(array($jobID, $statuscode, $body, $timestamp)); $stmt->execute(array($jobID, $statuscode, $body, $timestamp));