feat: update LiveKit configuration and enhance collaboration session handling
- Updated the `livekit-server-sdk` version to 2.9.2 for improved functionality. - Refactored `LiveKitEgressService` to include validation for required environment variables and added a method to stop recording. - Enhanced `LiveKitRoomService` to validate environment variables and dynamically set egress configurations for recording sessions. - Modified `CollaborationSessionSchema` to correct the relation name for `chatRoom` and updated the schema to reflect the new structure. - Improved error logging for better traceability during collaboration session creation.
This commit is contained in:
@@ -29,7 +29,7 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
chatRoomId: t.exposeString('chatRoomId', {
|
||||
description: 'The ID of the chat room.',
|
||||
}),
|
||||
chatRoom: t.relation('chatRoom', {
|
||||
chatRoom: t.relation('ChatRoom', {
|
||||
description: 'The chat room.',
|
||||
}),
|
||||
collaboratorsIds: t.exposeStringList('collaboratorsIds', {
|
||||
@@ -141,6 +141,7 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
})
|
||||
if (!chatRoom) throw new Error('Chat room not found')
|
||||
// create new one
|
||||
Logger.log(`chatRoom: ${chatRoom.id}`)
|
||||
const newCollaborationSession = await this.prisma.collaborationSession.create({
|
||||
data: {
|
||||
scheduleDateId: scheduleDate.id,
|
||||
|
||||
Reference in New Issue
Block a user