From 7563aaa86202bf18ba1b02c8baa476a56e0859fe Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Tue, 23 Apr 2024 14:19:19 +0400 Subject: [PATCH] Qfix restore elastic (#5430) Signed-off-by: Alexey Zinoviev --- server/elastic/src/backup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/elastic/src/backup.ts b/server/elastic/src/backup.ts index eb8dcb249e..259991f7f1 100644 --- a/server/elastic/src/backup.ts +++ b/server/elastic/src/backup.ts @@ -253,8 +253,8 @@ class ElasticDataAdapter implements DbAdapter { const operations = part.flatMap((doc) => [ { index: { _index: this.indexName, _id: doc._id } }, { - workspaceId: toWorkspaceString(this.workspaceId), - ...(doc as FullTextData).data + ...(doc as FullTextData).data, + workspaceId: toWorkspaceString(this.workspaceId) } ])