Skip to content

Commit

Permalink
Update src/mikro-orm.providers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan authored Jan 8, 2024
1 parent c091c07 commit cc75b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mikro-orm.providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function createMikroOrmRepositoryProviders(entities: EntityName<AnyEntity

(entities || []).forEach(entity => {
const meta = metadata.find(meta => meta.class === entity);
const repository = (meta?.repository) as unknown as (() => InjectionToken) | undefined;
const repository = meta?.repository as unknown as (() => InjectionToken) | undefined;

if (repository) {
providers.push({
Expand Down

0 comments on commit cc75b22

Please sign in to comment.