diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-31 15:38:07 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-31 15:38:07 +0300 |
commit | 80446f989cebb4c7326eb6ae4a787bb3eaa628a4 (patch) | |
tree | 85d71da1c07b925dc77f7f08bcd23150c555fdb5 /lib/Db | |
parent | 977f67a8f5ccf97f9fd8bbe29b8592dae67272ce (diff) |
Send oldest outbox message first
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/LocalMessageMapper.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Db/LocalMessageMapper.php b/lib/Db/LocalMessageMapper.php index 0aaa0f979..2a3743a27 100644 --- a/lib/Db/LocalMessageMapper.php +++ b/lib/Db/LocalMessageMapper.php @@ -131,7 +131,8 @@ class LocalMessageMapper extends QBMapper { ->where( $qb->expr()->isNotNull('send_at'), $qb->expr()->lte('send_at', $qb->createNamedParameter($time, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT) - ); + ) + ->orderBy('send_at', 'asc'); $messages = $this->findEntities($select); if (empty($messages)) { |