fix(infra): indexer missing data (#8578)

This commit is contained in:
EYHN
2024-10-23 01:44:24 +00:00
parent 90c0f67101
commit 542fde6c68
3 changed files with 12 additions and 12 deletions
@@ -115,7 +115,7 @@ export class DataStruct {
for (const [key, values] of document.fields) {
const type = this.schema[key as string];
if (!type) {
return;
continue;
}
const typeInfo = typeof type === 'string' ? { type } : type;
if (typeInfo.store !== false) {
@@ -132,7 +132,7 @@ export class DataStruct {
for (const [key, values] of document.fields) {
const iidx = this.invertedIndex.get(key as string);
if (!iidx) {
return;
continue;
}
await iidx.insert(trx, nid, values);
}