From 0e12659a48b0bf3b953e164e8961716605c2bfd7 Mon Sep 17 00:00:00 2001 From: stankis <151746694+stankis@users.noreply.github.com> Date: Sat, 24 Feb 2024 19:30:14 +0300 Subject: [PATCH] Some naming fixes (#78) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stanislav Kiselev <“staskis@yandex-team.ru”> --- src/services/new/workbook/copy-workbook.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/new/workbook/copy-workbook.ts b/src/services/new/workbook/copy-workbook.ts index 56354d90..dccb991c 100644 --- a/src/services/new/workbook/copy-workbook.ts +++ b/src/services/new/workbook/copy-workbook.ts @@ -322,7 +322,7 @@ async function getUniqWorkbookTitle({ export async function crossSyncCopiedJoinedEntryRevisions({ copiedJoinedEntryRevisions, encodedTemplateConnectionId, - encodedDestinationConnectionId, + encodedTargetConnectionId, ctx, trx, }: { @@ -331,7 +331,7 @@ export async function crossSyncCopiedJoinedEntryRevisions({ oldEntryId: string; }[]; encodedTemplateConnectionId?: string; - encodedDestinationConnectionId?: string; + encodedTargetConnectionId?: string; ctx: AppContext; trx: TransactionOrKnex; }) { @@ -347,8 +347,8 @@ export async function crossSyncCopiedJoinedEntryRevisions({ }, ); - if (encodedTemplateConnectionId && encodedDestinationConnectionId) { - newByOldEntryIdMap.set(encodedDestinationConnectionId, encodedTemplateConnectionId); + if (encodedTemplateConnectionId && encodedTargetConnectionId) { + newByOldEntryIdMap.set(encodedTargetConnectionId, encodedTemplateConnectionId); } let strCopiedJoinedEntryRevisions = JSON.stringify(arCopiedJoinedEntryRevisions);