Skip to content

Commit

Permalink
use param in getBatch()
Browse files Browse the repository at this point in the history
  • Loading branch information
zledwon committed Apr 13, 2016
1 parent cf347ca commit f67800f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Model/Table/EmailQueueTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function getBatch($size = 10)
$this->aliasField('send_at').' <=' => new FrozenTime('now'),
$this->aliasField('locked') => false,
])
->limit($size)
->order([$this->aliasField('created') => 'ASC']);

$emails
Expand Down

0 comments on commit f67800f

Please sign in to comment.