Vizzuality/landgriffon

View on GitHub
api/src/modules/api-events/api-events.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Logger, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { ApiEvent } from 'modules/api-events/api-event.entity';
import {
  FirstApiEventByTopicAndKind,
  LatestApiEventByTopicAndKind,
} from 'modules/api-events/api-event.topic+kind.entity';
import { ApiEventsController } from 'modules/api-events/api-events.controller';
import { ApiEventsService } from 'modules/api-events/api-events.service';

export const logger: Logger = new Logger('ApiEvents');

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ApiEvent,
      LatestApiEventByTopicAndKind,
      FirstApiEventByTopicAndKind,
    ]),
  ],
  providers: [ApiEventsService],
  controllers: [ApiEventsController],
  exports: [ApiEventsService],
})
export class ApiEventsModule {}