修复知识库上传报错

This commit is contained in:
limin 2025-02-12 14:59:27 +08:00
parent 71dab5dd28
commit e5ee402e7d

View File

@ -76,6 +76,7 @@ public class AsyncKnowledgeBase {
log.error("the creation of the knowledge base error {}", e.getMessage());
// 修改状态为 上传失败
updateFileState(knowledge, KnowledgeStatusEnum.UPLOAD_FAILED);
throw exception(new ErrorCode(10047, "文件上传到知识库失败!"));
}
});