fix(KBService): remove unnecessary skip variable in file processing logic
All checks were successful
GBCI / build (push) Successful in 3m22s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-05-22 11:14:10 -03:00
parent 3abbec63a7
commit 4e6e34e978

View file

@ -1243,6 +1243,9 @@ export class KBService implements IGBKBService {
shouldSave = true;
GBLogEx.info(min, `Add embeddings from packages, ${files.length} files being processed...`);
await CollectionUtil.asyncForEach(files, async file => {
if (file.root) {
let content = null;
let filePath = path.join(file.root, file.name);
try {
@ -1270,6 +1273,7 @@ export class KBService implements IGBKBService {
} catch (error) {
GBLogEx.info(min, `Ignore processing of ${file}. ${GBUtil.toYAML(error)}`);
}
}
});
}
if (shouldSave && min['vectorStore']) {