fix fulltext update

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-10-26 18:54:58 +02:00
parent 7b70a8c7b6
commit 10621de2e3
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -113,8 +113,8 @@ export class FullTextIndex extends TxProcessor implements Storage {
if (ops[attr.name] !== undefined) { if (ops[attr.name] !== undefined) {
update[`content${i}`] = ops[attr.name] update[`content${i}`] = ops[attr.name]
shouldUpdate = true shouldUpdate = true
i++
} }
i++
} }
if (shouldUpdate) { if (shouldUpdate) {
return await this.adapter.update(tx.objectId, update) return await this.adapter.update(tx.objectId, update)