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) .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));