mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: 添加目录到知识库任意一个失败界面上会展示失败
This commit is contained in:
parent
e3727c04ee
commit
0b2b0dd99b
@ -102,8 +102,8 @@ class KnowledgeService {
|
||||
sendDirectoryProcessingPercent(totalFiles, processedFiles)
|
||||
return result
|
||||
})
|
||||
const loaderResults = await Promise.all(loaderPromises)
|
||||
const uniqueIds = loaderResults.map((result) => result.uniqueId)
|
||||
const loaderResults = await Promise.allSettled(loaderPromises)
|
||||
const uniqueIds = loaderResults.filter(result => result.status === 'fulfilled').map((result) => result.uniqueId)
|
||||
return {
|
||||
entriesAdded: loaderResults.length,
|
||||
uniqueId: `DirectoryLoader_${uuidv4()}`,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user