mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix(infra): indexer missing data (#8578)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user