refactor: remove assistant chat archiving
This commit is contained in:
1 parent
212ce64c04
commit
9e6a0c7748
14 files changed
+8
-94
No files matched your search
@@ -142,11 +142,7 @@ export async function POST(request: Request) {
|
||||
}
|
||||
|
||||
const thread = await db.query.assistantThreads.findFirst({
|
||||
where: and(
|
||||
eq(assistantThreads.id, parsed.data.id),
|
||||
eq(assistantThreads.userId, session.user.id),
|
||||
eq(assistantThreads.status, "regular"),
|
||||
),
|
||||
where: and(eq(assistantThreads.id, parsed.data.id), eq(assistantThreads.userId, session.user.id)),
|
||||
});
|
||||
if (!thread) {
|
||||
return Response.json({ error: "Conversation not found." }, { status: 404 });
|
||||
|
||||
Reference in new issue
Block a user