M7-15 P2 | open-or-create 过滤 isArchived + knowledgeBaseId 必填约束优化 #103
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
发现位置
rag-chat.service.tsL35-81createSession+prisma/schema.prismaL1002。问题 1: open-or-create 未排除已归档会话
用户归档了一个会话后,再次进入同一 scope,不应该继续归档的会话。
问题 2: knowledgeBaseId 仍是 String(必填)
对于
globalscope,knowledgeBaseId没有值,当前被迫存空字符串''。应为String?(nullable)。修复方案
isArchived: false条件knowledgeBaseId改为String?,migration 一并处理涉及文件
修复
涉及: rag-chat.service.ts + prisma/schema.prisma