refactor: remove assistant chat archiving

This commit is contained in:
ajnart committed 2026-07-30 12:08:21 +02:00
1 parent 212ce64c04
commit 9e6a0c7748
14 files changed
+8 -94

No files matched your search

-10
View File
@@ -407,16 +407,6 @@ export const assistantRouter = createTRPCRouter({
.where(eq(assistantThreads.id, input.threadId));
}),
setThreadStatus: protectedProcedure
.input(z.object({ threadId: z.string().max(64), status: z.enum(["regular", "archived"]) }))
.mutation(async ({ ctx, input }) => {
await ownedThreadAsync(ctx.db, input.threadId, ctx.session.user.id);
await ctx.db
.update(assistantThreads)
.set({ status: input.status, updatedAt: new Date() })
.where(eq(assistantThreads.id, input.threadId));
}),
deleteThread: protectedProcedure
.input(z.object({ threadId: z.string().max(64) }))
.mutation(async ({ ctx, input }) => {