Skip to content

Commit

Permalink
Mercury-13.16.0-PLAT-8691-fixing duplicates in MR dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
ZurPHP committed Mar 21, 2018
1 parent c982f6a commit 87c3eac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private function initRunData(KalturaBatchJob $job, KalturaScheduledTaskJobData $
$this->pager->pageSize = self::PAGE_SIZE;
$this->pager->pageIndex = 1;
$this->filter = $this->scheduledTaskProfile->objectFilter;
$this->filter->orderBy = '+createdAt';
}

private function writeEntriesToCsv($entries)
Expand Down Expand Up @@ -267,7 +268,7 @@ private function updateFitler($entries)
$lastResult = end($entries);
$this->filter->createdAtGreaterThanOrEqual = $lastResult->createdAt;
$idsToIgnore = ScheduledTaskBatchHelper::getEntriesIdWithSameCreateAtTime($entries, $lastResult->createdAt);
$this->filter->idNotIn = implode (", ", $idsToIgnore);
$this->filter->idNotIn = implode (',', $idsToIgnore);
}

/* (non-PHPdoc)
Expand Down

0 comments on commit 87c3eac

Please sign in to comment.