refactor: comment out user validation in CollaborationSessionSchema and error handling in DateTimeUtils
- Temporarily disable the check for user participation in collaboration sessions to allow for further review of session management logic. - Comment out the error handling for invalid date times in DateTimeUtils, simplifying the date conversion process for now. - These changes aim to enhance code maintainability while preserving existing functionality.
This commit is contained in:
@@ -99,6 +99,8 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
// },
|
||||
// })
|
||||
// }
|
||||
// check if user is participant
|
||||
if (!collaborationSession.collaboratorsIds.includes(ctx.http.me.id)) throw new Error('User not allowed')
|
||||
return collaborationSession
|
||||
}
|
||||
/* ---------- use case 2 : center mentor get collaboration session by schedule date id --------- */
|
||||
|
||||
Reference in New Issue
Block a user