Skip to content

Commit

Permalink
refactor: tag-log-v1 & v2 -> tag-log
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu01 committed Dec 8, 2023
1 parent db53dc4 commit 8b2b81b
Show file tree
Hide file tree
Showing 50 changed files with 339 additions and 1,467 deletions.
4 changes: 1 addition & 3 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { SessionMiddleware } from './middleware/session-middleware';
import { RedirectModule } from './redirect/redirect.module';
import { ReissueModule } from './reissue/reissue.module';
import { StatisticsModule } from './statistics/statictics.module';
import { TagLogModule } from './tag-log-v1/tag-log.module';
import { TagLogModule2 } from './tag-log-v2/tag-log-v2.module';
import { TagLogModule2 as TagLogModule } from './tag-log/tag-log.module';
import { UserModule } from './user/user.module';

@Module({
Expand All @@ -30,7 +29,6 @@ import { UserModule } from './user/user.module';
RedirectModule,
AuthModule,
TagLogModule,
TagLogModule2,
UserModule,
Where42Module,
Cabi42Module,
Expand Down
4 changes: 2 additions & 2 deletions src/external/cabi42/cabi42.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TagLog } from 'src/entities/tag-log.entity';
import { TagLogRepository } from 'src/tag-log-v1/repository/mysql/tag-log.repository';
import { TagLogModule2 } from 'src/tag-log-v2/tag-log-v2.module';
import { TagLogRepository } from 'src/tag-log/repository/mysql/tag-log.repository';
import { TagLogModule2 } from 'src/tag-log/tag-log.module';
import { UserModule } from 'src/user/user.module';
import { Cabi42Controller } from './cabi42.controller';
import { Cabi42Service } from './cabi42.service';
Expand Down
2 changes: 1 addition & 1 deletion src/external/cabi42/cabi42.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, Logger } from '@nestjs/common';
import { TagLogService } from 'src/tag-log-v2/tag-log-v2.service';
import { TagLogService } from 'src/tag-log/tag-log.service';
import { UserService } from 'src/user/user.service';
import { Cabi42ResponseDto } from './dto/cabi42.response.dto';

Expand Down
2 changes: 1 addition & 1 deletion src/external/cabi42/dto/cabi42.response.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { UserIdType } from 'src/tag-log-v2/dto/admin/user-id.type';
import { UserIdType } from 'src/tag-log/dto/admin/user-id.type';

export class Cabi42ResponseDto extends UserIdType {
@ApiProperty({
Expand Down
2 changes: 1 addition & 1 deletion src/external/where42/where42.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DeviceInfo } from 'src/entities/device-info.entity';
import { TagLog } from 'src/entities/tag-log.entity';
import { TagLogRepository } from 'src/tag-log-v1/repository/mysql/tag-log.repository';
import { TagLogRepository } from 'src/tag-log/repository/mysql/tag-log.repository';
import { UserModule } from 'src/user/user.module';
import { DeviceInfoRepository } from './repository/mysql/device-info.repository';
import { Where42Controller } from './where42.controller';
Expand Down
2 changes: 1 addition & 1 deletion src/external/where42/where42.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Injectable,
Logger,
} from '@nestjs/common';
import { ITagLogRepository } from 'src/tag-log-v1/repository/interface/tag-log-repository.interface';
import { ITagLogRepository } from 'src/tag-log/repository/interface/tag-log-repository.interface';
import { UserService } from 'src/user/user.service';
import { Where42ResponseDto } from './dto/where42.response.dto';
import { IDeviceInfoRepository } from './repository/interface/device-info.repository.interface';
Expand Down

This file was deleted.

216 changes: 0 additions & 216 deletions src/tag-log-v1/tag-log.controller.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/tag-log-v1/tag-log.module.ts

This file was deleted.

Loading

0 comments on commit 8b2b81b

Please sign in to comment.