From 38bb553588f14244c396a38f99bd0b6ac33a2186 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 11 Mar 2018 22:48:53 +0200 Subject: [PATCH] Scheduling fix for MySQL/MariaDB version 3000 --- src/data/Thread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/Thread.js b/src/data/Thread.js index 320eafe..a5fcc44 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -144,7 +144,7 @@ class Thread { }); // The 1970 check is a knex bug, see https://github.com/tgriesser/knex/issues/1276 - if (this.scheduled_close_at && this.scheduled_close_at !== '1970-01-01T00:00:00.000Z') { + if (this.scheduled_close_at && typeof this.scheduled_close_at === 'string') { await this.cancelScheduledClose(); await this.postSystemMessage({ content: `<@!${this.scheduled_close_id}> Thread that was scheduled to be closed got a new reply. Cancelling.`,