diff --git a/src/Document/document.schema.ts b/src/Document/document.schema.ts index f7eae09..6c354ba 100644 --- a/src/Document/document.schema.ts +++ b/src/Document/document.schema.ts @@ -461,10 +461,7 @@ export class DocumentSchema extends PothosSchema { if (!document.isPublic) { if ( document.ownerId !== ctx.websocket?.me?.id && - !document.collaborators.some((c) => - c.userId === ctx.websocket?.me?.id && - (c.writable || c.readable) - ) + !document.collaborators.some((c) => c.userId === ctx.websocket?.me?.id && (c.writable || c.readable)) ) { throw new Error('User is not owner or collaborator of document') }