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:
2024-12-09 17:06:23 +07:00
parent 951511228a
commit 8d0b80f09c
5 changed files with 1166 additions and 1257 deletions

View File

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