Skip to content

Commit

Permalink
fix(code-first): use replaceAll for uppercase mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kasvith committed Jan 23, 2022
1 parent 42a3f00 commit e7a18c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema-builder/factories/enum-definition.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GraphQLEnumType } from 'graphql';
import { EnumMetadata } from '../metadata';

export const mapToUppercase = (value: string): string =>
upperCase(value).replace(' ', '_');
upperCase(value).replaceAll(' ', '_');

export interface EnumDefinition {
enumRef: object;
Expand Down

0 comments on commit e7a18c4

Please sign in to comment.