refactor: remove assistant chat archiving
This commit is contained in:
1 parent
26a9752206
commit
d37a2ba963
12 files changed
+8
-79
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