Skip to content

Commit

Permalink
Merge pull request #12 from zledwon/master
Browse files Browse the repository at this point in the history
use size param in getBatch()
  • Loading branch information
lorenzo committed Apr 13, 2016
2 parents cf347ca + f67800f commit fa0c875
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 fa0c875

Please sign in to comment.