Fix scheduled closing on MySQL/MariaDB

master
Dragory 2018-03-11 22:36:52 +02:00
parent bf80ce5531
commit 40e420a40d
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ async function getThreadsThatShouldBeClosed() {
.where('status', THREAD_STATUS.OPEN)
.whereNotNull('scheduled_close_at')
.where('scheduled_close_at', '<=', now)
.whereNotNull('scheduled_close_at')
.select();
return threads.map(thread => new Thread(thread));