🐛do not generate thumbnails tmp until it will be fixed
This commit is contained in:
@@ -403,7 +403,7 @@ export class DocumentsService {
|
|||||||
company_id: driveItem.company_id,
|
company_id: driveItem.company_id,
|
||||||
},
|
},
|
||||||
context,
|
context,
|
||||||
{ waitForThumbnail: true },
|
{ waitForThumbnail: false },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ export const getFileMetadata = async (
|
|||||||
company_id: context.company.id,
|
company_id: context.company.id,
|
||||||
},
|
},
|
||||||
context,
|
context,
|
||||||
{ ...(context.user?.server_request ? {} : { waitForThumbnail: true }) },
|
{ ...(context.user?.server_request ? {} : { waitForThumbnail: false }) },
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ export class DocumentsController {
|
|||||||
chunkNumber: parseInt(q.resumableChunkNumber || q.chunk_number) || 1,
|
chunkNumber: parseInt(q.resumableChunkNumber || q.chunk_number) || 1,
|
||||||
filename: q.resumableFilename || q.filename || file?.filename || undefined,
|
filename: q.resumableFilename || q.filename || file?.filename || undefined,
|
||||||
type: q.resumableType || q.type || file?.mimetype || undefined,
|
type: q.resumableType || q.type || file?.mimetype || undefined,
|
||||||
waitForThumbnail: !!q.thumbnail_sync,
|
waitForThumbnail: false,
|
||||||
ignoreThumbnails: false,
|
ignoreThumbnails: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
createdFile = await globalResolver.services.files.save(null, file, options, context);
|
createdFile = await globalResolver.services.files.save(null, file, options, context);
|
||||||
|
|||||||
Reference in New Issue
Block a user