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`); }