Skip to content

Commit 08f0952

Browse files
committed
fix(code-first): use replaceAll for uppercase mapper
1 parent 96a4d71 commit 08f0952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql/lib/schema-builder/factories/enum-definition.factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GraphQLEnumType } from 'graphql';
44
import { EnumMetadata } from '../metadata';
55

66
export const mapToUppercase = (value: string): string =>
7-
upperCase(value).replace(' ', '_');
7+
upperCase(value).replaceAll(' ', '_');
88

99
export interface EnumDefinition {
1010
enumRef: object;

0 commit comments

Comments
 (0)