Skip to content

Commit

Permalink
refactor: change name of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kasvith committed Nov 4, 2021
1 parent 0076de1 commit 42a3f00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/schema-builder/factories/enum-definition.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export class EnumDefinitionFactory {
values: Object.keys(enumValues).reduce((prevValue, key) => {
const valueMap = metadata.valuesMap[key];

let graphqlKey = key;
let enumKey = key;
if (metadata.mapToUppercase) {
graphqlKey = mapToUppercase(key);
enumKey = mapToUppercase(key);
}

prevValue[graphqlKey] = {
prevValue[enumKey] = {
value: enumValues[key],
description: valueMap?.description,
deprecationReason: valueMap?.deprecationReason,
Expand Down

0 comments on commit 42a3f00

Please sign in to comment.