Qfix restore elastic (#5430)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-04-23 14:19:19 +04:00 committed by GitHub
parent df5aa8f7b5
commit 7563aaa862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,8 +253,8 @@ class ElasticDataAdapter implements DbAdapter {
const operations = part.flatMap((doc) => [ const operations = part.flatMap((doc) => [
{ index: { _index: this.indexName, _id: doc._id } }, { index: { _index: this.indexName, _id: doc._id } },
{ {
workspaceId: toWorkspaceString(this.workspaceId), ...(doc as FullTextData).data,
...(doc as FullTextData).data workspaceId: toWorkspaceString(this.workspaceId)
} }
]) ])