feat: update collaborator assignment in CollaborationSessionSchema
- Changed the logic for assigning collaborators in the CollaborationSessionSchema to use participant IDs from the scheduleDate instead of the current user's ID. - This update enhances the collaboration functionality by ensuring that all relevant participants are included in the session.
This commit is contained in:
@@ -146,7 +146,7 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
scheduleDateId: scheduleDate.id,
|
||||
// assign chat room
|
||||
chatRoomId: chatRoom.id,
|
||||
collaboratorsIds: [ctx.http.me.id],
|
||||
collaboratorsIds: [...scheduleDate.participantIds],
|
||||
},
|
||||
})
|
||||
// case after start time and before end time, mark as late
|
||||
|
||||
Reference in New Issue
Block a user