mirror of https://github.com/MISP/MISP
Email jobs do not update the date modified once completed.
parent
a97d90ca5a
commit
6e62a3b662
|
@ -275,7 +275,7 @@ class EventShell extends AppShell
|
|||
$user = $this->User->getAuthUser($userId);
|
||||
$result = $this->Event->sendContactEmail($id, $message, $all, array('User' => $user), $isSiteAdmin);
|
||||
$this->Job->saveField('progress', '100');
|
||||
//$this->Job->saveField('date_modified', date("y-m-d H:i:s"));
|
||||
$this->Job->saveField('date_modified', date("y-m-d H:i:s"));
|
||||
if ($result != true) $this->Job->saveField('message', 'Job done.');
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ class EventShell extends AppShell
|
|||
$result = $this->Post->sendPostsEmail($userId, $postId, $eventId, $title, $message);
|
||||
$job['Job']['progress'] = 100;
|
||||
$job['Job']['message'] = 'Emails sent.';
|
||||
//$job['Job']['date_modified'] = date("y-m-d H:i:s");
|
||||
$job['Job']['date_modified'] = date("y-m-d H:i:s");
|
||||
$this->Job->save($job);
|
||||
}
|
||||
|
||||
|
@ -354,7 +354,7 @@ class EventShell extends AppShell
|
|||
$this->Event->Behaviors->unload('SysLogLogable.SysLogLogable');
|
||||
$result = $this->Event->publish($id, $passAlong);
|
||||
$job['Job']['progress'] = 100;
|
||||
//$job['Job']['date_modified'] = date("y-m-d H:i:s");
|
||||
$job['Job']['date_modified'] = date("y-m-d H:i:s");
|
||||
if ($result) {
|
||||
$job['Job']['message'] = 'Event published.';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue