mirror of https://github.com/MISP/MISP
fix: [publishing] Fixed several bugs in the background job responsible for publishing events
parent
0e91baa040
commit
435bf28df6
|
@ -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.';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue