From 7248ea257f17d135ff84229c64e2ed9361e06add Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Wed, 4 Dec 2024 14:00:07 +0700 Subject: [PATCH] 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. --- src/CollaborationSession/collaborationsession.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CollaborationSession/collaborationsession.schema.ts b/src/CollaborationSession/collaborationsession.schema.ts index 49729ea..6fbd21e 100644 --- a/src/CollaborationSession/collaborationsession.schema.ts +++ b/src/CollaborationSession/collaborationsession.schema.ts @@ -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