Fix scheduled closing on MySQL/MariaDB
parent
bf80ce5531
commit
40e420a40d
|
@ -206,6 +206,7 @@ async function getThreadsThatShouldBeClosed() {
|
||||||
.where('status', THREAD_STATUS.OPEN)
|
.where('status', THREAD_STATUS.OPEN)
|
||||||
.whereNotNull('scheduled_close_at')
|
.whereNotNull('scheduled_close_at')
|
||||||
.where('scheduled_close_at', '<=', now)
|
.where('scheduled_close_at', '<=', now)
|
||||||
|
.whereNotNull('scheduled_close_at')
|
||||||
.select();
|
.select();
|
||||||
|
|
||||||
return threads.map(thread => new Thread(thread));
|
return threads.map(thread => new Thread(thread));
|
||||||
|
|
Loading…
Reference in New Issue