Skip to content

Commit e7a18c4

Browse files
committed
fix(code-first): use replaceAll for uppercase mapper
1 parent 42a3f00 commit e7a18c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)