Skip to content

Commit c8def07

Browse files
committed
Chore: Change from string to symbol as key of metadata
1 parent addac37 commit c8def07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/decorators/typeorm.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SetMetadata } from '@nestjs/common';
22

3-
export const TYPEORM_CUSTOM_REPOSITORY = 'TYPEORM_CUSTOM_REPOSITORY';
3+
export const TYPEORM_CUSTOM_REPOSITORY = Symbol('TYPEORM_CUSTOM_REPOSITORY');
44

55
export function CustomRepository<T>(
66
entity: new (...args: unknown[]) => T,

0 commit comments

Comments
 (0)