Skip to content

Commit

Permalink
Merge pull request #79 from mash-up-kr/fix/hotfix-0723-ai-worker
Browse files Browse the repository at this point in the history
AI worker Hotfix
  • Loading branch information
J-Hoplin authored Jul 23, 2024
2 parents 0d231e5 + 2590306 commit 5d3882d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ai_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { ConfigModule } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { Handler } from 'aws-lambda';
import { DatabaseModule } from './infrastructure';
import { AiModule } from './infrastructure/ai/ai.module';
import { AiClassificationPayload } from './infrastructure/aws-lambda/type';
import { DiscordModule } from './infrastructure/discord/discord.module';
import { AiClassificationModule } from './modules/ai-classification/ai-classification.module';
import { AiClassificationService } from './modules/ai-classification/ai-classification.service';

Expand All @@ -15,11 +17,12 @@ import { AiClassificationService } from './modules/ai-classification/ai-classifi
envFilePath: `.env.${process.env.NODE_ENV || 'local'}`,
}),
DatabaseModule,
DiscordModule,
AiModule,
AiClassificationModule,
],
providers: [AiClassificationService],
})
class WorkerModule {}
export class WorkerModule {}

export const handler: Handler = async (event: AiClassificationPayload) => {
const app = await NestFactory.create(WorkerModule);
Expand Down

0 comments on commit 5d3882d

Please sign in to comment.