diff --git a/src/Document/document.schema.ts b/src/Document/document.schema.ts index 4e883a0..d3f6035 100644 --- a/src/Document/document.schema.ts +++ b/src/Document/document.schema.ts @@ -136,13 +136,13 @@ export class DocumentSchema extends PothosSchema { if (ctx.isSubscription) throw new Error('Not allowed') const userId = ctx.http?.me?.id if (!userId) throw new Error('User not found') - const fileUrl = await this.minio.getFileUrl('document', 'document', 'document') - if (!fileUrl) throw new Error('File not found') + // const fileUrl = await this.minio.getFileUrl('document', 'document', 'document') + // if (!fileUrl) throw new Error('File not found') const document = await this.prisma.document.create({ ...query, data: { name: 'Untitled', - fileUrl, + fileUrl: '', // fileUrl, ownerId: userId, }, })