From ce1398dcb85cb3edbad4707ab86f5de9b3b2b162 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 31 Mar 2020 10:50:19 +0200 Subject: [PATCH] Fix bad request --- src/helpers/ConversationsHelper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/ConversationsHelper.ts b/src/helpers/ConversationsHelper.ts index f320423..2499f45 100644 --- a/src/helpers/ConversationsHelper.ts +++ b/src/helpers/ConversationsHelper.ts @@ -412,7 +412,8 @@ export class ConversationsHelper { table: USERS_TABLE, where: { conv_id: convID, - user_id: userID + user_id: userID, + saw_last_message: 0 }, set: { saw_last_message: 1