fix(KBService): standardize formatting and improve code readability
All checks were successful
GBCI / build (push) Successful in 1m1s
All checks were successful
GBCI / build (push) Successful in 1m1s
This commit is contained in:
parent
53710da2a7
commit
e2382ccddc
1 changed files with 47 additions and 46 deletions
|
|
@ -1239,8 +1239,9 @@ export class KBService implements IGBKBService {
|
|||
const gbdata = path.join(process.env.PWD, 'work', GBUtil.getGBAIPath(min.botId, 'gbdata'));
|
||||
files = files.concat(await walkPromise(gbdata));
|
||||
|
||||
|
||||
if (files[0]) {
|
||||
|
||||
files = files.filter(p => { return p });
|
||||
shouldSave = true;
|
||||
GBLogEx.info(min, `Add embeddings from packages, ${files.length} files being processed...`);
|
||||
await CollectionUtil.asyncForEach(files, async file => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue