feat(sprint3): EconomyModule TetardCoin + TwitchModule EventSub — migration + 36 tests
This commit is contained in:
19
src/twitch/twitch.module.ts
Normal file
19
src/twitch/twitch.module.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { EconomyModule } from '../economy/economy.module';
|
||||
import { ProcessedEvent } from './entities/processed-event.entity';
|
||||
import { TwitchEventService } from './twitch-event.service';
|
||||
import { TwitchWebhookController } from './twitch-webhook.controller';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
ConfigModule,
|
||||
TypeOrmModule.forFeature([ProcessedEvent]),
|
||||
EconomyModule,
|
||||
],
|
||||
controllers: [TwitchWebhookController],
|
||||
providers: [TwitchEventService],
|
||||
exports: [TwitchEventService],
|
||||
})
|
||||
export class TwitchModule {}
|
||||
Reference in New Issue
Block a user