Skip to content

Commit

Permalink
[backend] Remove CreateUserOnRoomDto (which is not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
usatie committed Feb 21, 2024
1 parent 53624f0 commit 7b17a76
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions backend/src/room/dto/update-UserOnRoom.dto.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ApiProperty } from '@nestjs/swagger';
import { Role } from '@prisma/client';
import { IsNotEmpty, IsString } from 'class-validator';

export class CreateUserOnRoomDto {
export class UpdateUserOnRoomDto {
@IsString()
@IsNotEmpty()
@ApiProperty()
Expand Down
2 changes: 1 addition & 1 deletion backend/src/room/room.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import { CurrentUser } from 'src/common/decorators/current-user.decorator';
import { Member } from './decorators/member.decorator';
import { CreateRoomDto } from './dto/create-room.dto';
import { GetRoomsQueryDto } from './dto/get-rooms-query.dto';
import { UpdateUserOnRoomDto } from './dto/update-UserOnRoom.dto';
import { UpdateRoomDto } from './dto/update-room.dto';
import { UpdateUserOnRoomDto } from './dto/update-user-on-room.dto';
import { UserOnRoomEntity } from './entities/UserOnRoom.entity';
import { RoomEntity } from './entities/room.entity';
import { AdminGuard } from './guards/admin.guard';
Expand Down
2 changes: 1 addition & 1 deletion backend/src/room/room.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { RoomLeftEvent } from 'src/common/events/room-left.event';
import { RoomUpdateRoleEvent } from 'src/common/events/room-update-role.event';
import { PrismaService } from 'src/prisma/prisma.service';
import { CreateRoomDto } from './dto/create-room.dto';
import { UpdateUserOnRoomDto } from './dto/update-UserOnRoom.dto';
import { UpdateRoomDto } from './dto/update-room.dto';
import { UpdateUserOnRoomDto } from './dto/update-user-on-room.dto';
import { UserOnRoomEntity } from './entities/UserOnRoom.entity';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion backend/test/utils/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { INestApplication } from '@nestjs/common';
import { LoginDto } from 'src/auth/dto/login.dto';
import { CreateRoomDto } from 'src/room/dto/create-room.dto';
import { EnterRoomDto } from 'src/room/dto/enter-room.dto';
import { UpdateUserOnRoomDto } from 'src/room/dto/update-UserOnRoom.dto';
import { UpdateRoomDto } from 'src/room/dto/update-room.dto';
import { UpdateUserOnRoomDto } from 'src/room/dto/update-user-on-room.dto';
import { CreateUserDto } from 'src/user/dto/create-user.dto';
import { UpdateUserDto } from 'src/user/dto/update-user.dto';
import { UserEntity } from 'src/user/entities/user.entity';
Expand Down

0 comments on commit 7b17a76

Please sign in to comment.