File tree Expand file tree Collapse file tree 4 files changed +5
-25
lines changed Expand file tree Collapse file tree 4 files changed +5
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,13 +2,11 @@ import { Module } from '@nestjs/common';
22import { TypeOrmModule } from '@nestjs/typeorm' ;
33import { AnalyticsService } from './analytics.service' ;
44import { UrlAnalytics } from './analytics.entity' ;
5- import { AnalyticsController } from './analytics.controller' ;
6- import { AuthModule } from 'src/auth/auth.module' ;
75
86@Module ( {
9- imports : [ TypeOrmModule . forFeature ( [ UrlAnalytics ] ) , AuthModule ] ,
7+ imports : [ TypeOrmModule . forFeature ( [ UrlAnalytics ] ) ] ,
108 providers : [ AnalyticsService ] ,
11- exports : [ AnalyticsService ] ,
12- controllers : [ AnalyticsController ] ,
9+ exports : [ ] ,
10+ controllers : [ ] ,
1311} )
1412export class AnalyticsModule { }
Original file line number Diff line number Diff line change @@ -4,16 +4,9 @@ import { UrlService } from './url.service';
44import { TypeOrmModule } from '@nestjs/typeorm' ;
55import { Url } from './url.entity' ;
66import { AuthModule } from 'src/auth/auth.module' ;
7- import { UserModule } from 'src/user/user.module' ;
8- import { AnalyticsModule } from 'src/analytics/analytics.module' ;
97
108@Module ( {
11- imports : [
12- TypeOrmModule . forFeature ( [ Url ] ) ,
13- AuthModule ,
14- UserModule ,
15- AnalyticsModule ,
16- ] ,
9+ imports : [ TypeOrmModule . forFeature ( [ Url ] ) , AuthModule ] ,
1710 controllers : [ UrlController ] ,
1811 providers : [ UrlService ] ,
1912 exports : [ UrlService ] ,
Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ import {
1313 encrypt ,
1414 hashString ,
1515} from './utils/crypto-helper' ;
16- import { UserService } from '../user/user.service' ;
1716import { GetUrlRequestData } from './dto/get-urls-request-data' ;
18- import { AnalyticsService } from '../analytics/analytics.service' ;
1917import { RequestWithUser } from 'src/types/RequestWithUser' ;
2018import { EventEmitter2 } from '@nestjs/event-emitter' ;
2119import { UrlRedirectedEvent } from 'src/event/Url-redirected.events' ;
@@ -24,9 +22,7 @@ export class UrlService {
2422 constructor (
2523 @InjectRepository ( Url )
2624 private readonly urlRepository : Repository < Url > ,
27- private readonly userService : UserService ,
28- private readonly analyticsService : AnalyticsService ,
29- private eventEmitter : EventEmitter2 ,
25+ private readonly eventEmitter : EventEmitter2 ,
3026 ) { }
3127
3228 async create (
You can’t perform that action at this time.
0 commit comments