chore: update subproject commit reference and enhance error handling in schema files
- Updated the subproject commit reference in epess-database to the latest version. - Changed error messages in CollaborationSession and Document schemas for improved clarity and security. - Refactored error handling logic to ensure consistent user authentication checks across multiple schema files. - Enhanced GraphQL module configuration with new options for better performance and error response handling.
This commit is contained in:
@@ -222,7 +222,7 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
throw new Error('Not allowed')
|
||||
}
|
||||
if (!ctx.http?.me?.id) {
|
||||
throw new Error('User not found')
|
||||
throw new Error('Unauthorized')
|
||||
}
|
||||
// check if participantId is in meetingRoomCollaborators
|
||||
const meetingRoomCollaborator = await this.prisma.meetingRoomCollaborator.findFirst({
|
||||
|
||||
Reference in New Issue
Block a user