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:
2024-12-04 14:00:07 +07:00
parent 3d670ad0fc
commit 7248ea257f

View File

@@ -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