Skip to content

Commit

Permalink
fix: Add the corresponding types to the DTOs of the Room class and re…
Browse files Browse the repository at this point in the history
…move the envFilePath.
  • Loading branch information
gabrielmatau79 committed Jan 13, 2025
1 parent 1813e7a commit d4c4295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { RoomFactory } from './lib/RoomFactory'
imports: [
HttpModule,
ConfigModule.forRoot({
envFilePath: '.env',
load: [appConfig],
isGlobal: true,
}),
Expand Down
6 changes: 3 additions & 3 deletions src/rooms/dto/rooms.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CreateBroadcasterDto {

@IsObject()
@IsOptional()
rtpCapabilities?: any
rtpCapabilities?: mediasoup.types.RtpCapabilities
}

export class DeleteBroadcasterDto {
Expand All @@ -63,7 +63,7 @@ export class CreateBroadcasterTransportDto {

@IsObject()
@IsOptional()
sctpCapabilities?: any
sctpCapabilities?: mediasoup.types.SctpCapabilities
}

/**
Expand Down Expand Up @@ -176,5 +176,5 @@ export class RoomEventDto {
* Optional RTP parameters associated with a producer or consumer.
*/
@IsOptional()
rtpParameters?: any
rtpParameters?: mediasoup.types.RtpParameters
}

0 comments on commit d4c4295

Please sign in to comment.