Skip to content

Commit

Permalink
Rename readModels
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Nov 15, 2024
1 parent b9d5374 commit a0f6bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MongoFindSuggestionsTermReadModel from '@src/languages/infrastructure/per
import { SEARCH_TERM_VIEW_READ_MODEL } from '@src/languages/application/term/query/searchTermViewReadModel';
import MongoSearchTermViewReadModel from '@src/languages/infrastructure/persistence/mongo/readLayer/mongoSearchTermViewReadModel';

export const readLayers = [
export const readModels = [
{
provide: FIND_SUGGESTIONS_TERM_READ_MODEL,
useClass: MongoFindSuggestionsTermReadModel,
Expand Down
4 changes: 2 additions & 2 deletions src/languages/language.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { commands } from '@src/languages/_dependencyInjection/commandHandlers';
import { queries } from '@src/languages/_dependencyInjection/queryHandlers';
import { events } from '@src/languages/_dependencyInjection/eventHandlers';
import { projections } from '@src/languages/_dependencyInjection/projectionHandlers';
import { readLayers } from '@src/languages/_dependencyInjection/readLayers';
import { readModels } from '@src/languages/_dependencyInjection/readModels';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { entitySchemas } from '@src/shared/_dependencyInjection/entitySchemas';
import mikroOrmConfiguration from './infrastructure/persistence/mikroOrm/config';
Expand All @@ -14,6 +14,6 @@ import mikroOrmConfiguration from './infrastructure/persistence/mikroOrm/config'
imports: [MikroOrmModule.forRoot(mikroOrmConfiguration), MikroOrmModule.forFeature(entitySchemas)],
exports: [],
controllers: [...controllers],
providers: [...commands, ...queries, ...events, ...projections, ...repositories, ...readLayers],
providers: [...commands, ...queries, ...events, ...projections, ...repositories, ...readModels],
})
export class LanguageModule {}

0 comments on commit a0f6bb7

Please sign in to comment.