fix: [publishing] Fixed several bugs in the background job responsible for publishing events

pull/3966/head
iglocska 2018-12-19 15:55:06 +01:00
parent 0e91baa040
commit 435bf28df6
1 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ class EventShell extends AppShell
$this->Job->save($data);
$jobId = $this->Job->id;
}
$job = $this->Job->read(null, $jobId)
$job = $this->Job->read(null, $jobId);
$options = array(
'user' => $user,
'event_id' => $eventId,
@ -568,7 +568,7 @@ class EventShell extends AppShell
$job['Job']['progress'] = 100;
$job['Job']['date_modified'] = date("y-m-d H:i:s");
if ($result) {
$job['Job']['message'] = 'Added ' . $result . ' attribute' . ($result > 1 ? 's.' : '.')
$job['Job']['message'] = 'Added ' . $result . ' attribute' . ($result > 1 ? 's.' : '.');
} else {
$job['Job']['message'] = 'Enrichment finished, but no attributes added.';
}