Skip to content

Commit

Permalink
feat: register aop module
Browse files Browse the repository at this point in the history
  • Loading branch information
stae1102 committed Feb 4, 2024
1 parent e87be42 commit 4dff9f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { SummaryModule } from './summary/summary.module';
import { TypeOrmConfigService } from './database/typerom-config.service';
import { OpenaiModule } from './openai/openai.module';
import { AppController } from './app.controller';
import { AopModule } from './common/aop/aop.module';

@Module({
imports: [
Expand Down Expand Up @@ -101,6 +102,7 @@ import { AppController } from './app.controller';
: '',
}),
OpenaiModule,
AopModule,
],
controllers: [AppController],
providers: [],
Expand Down
10 changes: 10 additions & 0 deletions src/common/aop/aop.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Module } from '@nestjs/common';
import { DiscoveryModule } from '@nestjs/core';
import { AutoAspectExecutor } from './auto-aspect.executor';
import { TransactionDecorator } from './transactional.decorator';

@Module({
imports: [DiscoveryModule],
providers: [AutoAspectExecutor, TransactionDecorator],
})
export class AopModule {}

0 comments on commit 4dff9f7

Please sign in to comment.