Also add that fix to the third place where it's needed

master
Dragory 2018-03-11 23:20:59 +02:00
parent fa93dd03fb
commit 07c0336f72
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@ class Thread {
dm_message_id: dmMessage.id 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.cancelScheduledClose();
await this.postSystemMessage(`Cancelling scheduled closing of this thread due to new reply`); await this.postSystemMessage(`Cancelling scheduled closing of this thread due to new reply`);
} }