Skip to content

Commit

Permalink
chore: remove obsolete variables
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris007 committed Dec 18, 2024
1 parent 1f0cf1d commit 3f39dfa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,10 @@ class Reference {
break;
}

const prefix = `${baseMethodName}By`;
const targetIdName = entityNameToIdName(target);

for (let i = 1; i <= sortKeys.length; i += 1) {
const subset = sortKeys.slice(0, i);
accessorConfigs.push({
name: keyNamesToMethodName(subset, prefix, [targetIdName]),
name: keyNamesToMethodName(subset, `${baseMethodName}By`),
requiredKeys: subset,
all: true,
foreignKey: { name: foreignKeyName, value: foreignKeyValue },
Expand Down

0 comments on commit 3f39dfa

Please sign in to comment.