mirror of https://github.com/MISP/MISP
fix: [sync] Proposal pull restricted to 14 days
- no need to pull ancient proposals each timepull/4877/head
parent
64fafa1913
commit
be6da3481f
|
@ -1024,7 +1024,10 @@ class ShadowAttributesController extends AppController
|
||||||
if (!empty($this->request->data)) {
|
if (!empty($this->request->data)) {
|
||||||
foreach ($this->request->data as $eventUuid) {
|
foreach ($this->request->data as $eventUuid) {
|
||||||
$temp = $this->ShadowAttribute->find('all', array(
|
$temp = $this->ShadowAttribute->find('all', array(
|
||||||
'conditions' => array('event_uuid' => $eventUuid),
|
'conditions' => array(
|
||||||
|
'event_uuid' => $eventUuid,
|
||||||
|
'timestamp >' => strtotime("-14 day")
|
||||||
|
),
|
||||||
'recursive' => -1,
|
'recursive' => -1,
|
||||||
'contain' => array(
|
'contain' => array(
|
||||||
'Org' => array('fields' => array('uuid', 'name')),
|
'Org' => array('fields' => array('uuid', 'name')),
|
||||||
|
|
Loading…
Reference in New Issue