From 40e420a40dbec95fd5f7d1d099c74d2ec46fb66b Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 11 Mar 2018 22:36:52 +0200 Subject: [PATCH] Fix scheduled closing on MySQL/MariaDB --- src/data/threads.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/threads.js b/src/data/threads.js index 9a0f498..d9042a8 100644 --- a/src/data/threads.js +++ b/src/data/threads.js @@ -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));