From 07c0336f722e9aa3b1f143723548e1cea158dfa8 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 11 Mar 2018 23:20:59 +0200 Subject: [PATCH] Also add that fix to the third place where it's needed --- src/data/Thread.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/Thread.js b/src/data/Thread.js index 5df777e..490207b 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -91,7 +91,8 @@ class Thread { dm_message_id: dmMessage.id }); - if (this.scheduled_close_at) { + // The string type check is due to a knex bug, see https://github.com/tgriesser/knex/issues/1276 + if (this.scheduled_close_at && typeof this.scheduled_close_at === 'string') { await this.cancelScheduledClose(); await this.postSystemMessage(`Cancelling scheduled closing of this thread due to new reply`); }