From b1cc69848c02ec3f968fa610787690c64d7970e3 Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Thu, 8 Feb 2024 18:46:47 -0800
Subject: [PATCH] fix reset scope when non-threaded

---
 server/models/workspaceChats.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/models/workspaceChats.js b/server/models/workspaceChats.js
index 1dd205174..4fae46b9f 100644
--- a/server/models/workspaceChats.js
+++ b/server/models/workspaceChats.js
@@ -80,6 +80,7 @@ const WorkspaceChats = {
         where: {
           workspaceId,
           user_id: user?.id,
+          thread_id: null, // this function is now only used for the default thread on workspaces
         },
         data: {
           include: false,
-- 
GitLab