Skip to content

Commit

Permalink
Some naming fixes (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Kiselev <“[email protected]”>
  • Loading branch information
stankis and Stanislav Kiselev authored Feb 24, 2024
1 parent 20e63f9 commit 0e12659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/new/workbook/copy-workbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async function getUniqWorkbookTitle({
export async function crossSyncCopiedJoinedEntryRevisions({
copiedJoinedEntryRevisions,
encodedTemplateConnectionId,
encodedDestinationConnectionId,
encodedTargetConnectionId,
ctx,
trx,
}: {
Expand All @@ -331,7 +331,7 @@ export async function crossSyncCopiedJoinedEntryRevisions({
oldEntryId: string;
}[];
encodedTemplateConnectionId?: string;
encodedDestinationConnectionId?: string;
encodedTargetConnectionId?: string;
ctx: AppContext;
trx: TransactionOrKnex;
}) {
Expand All @@ -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);
Expand Down

0 comments on commit 0e12659

Please sign in to comment.