Fix sending task reschedule

The query returned data from the sending queue table
So the next update updated the wrong row in the tasks table

[MAILPOET-1378]
This commit is contained in:
Pavel Dohnal
2018-05-17 16:13:51 +01:00
parent dbdf432c1d
commit 9b9abf5cde

View File

@ -141,6 +141,7 @@ class SendingQueue extends Model {
static function getTasks() {
return ScheduledTask::table_alias('tasks')
->selectExpr('tasks.*')
->join(
MP_SENDING_QUEUES_TABLE,
'tasks.id = queues.task_id',