🐛do not generate thumbnails tmp until it will be fixed

This commit is contained in:
Anton SHEPILOV
2025-01-08 15:46:31 +01:00
parent 84a61c1431
commit ab4c39e22a
3 changed files with 4 additions and 4 deletions
@@ -403,7 +403,7 @@ export class DocumentsService {
company_id: driveItem.company_id,
},
context,
{ waitForThumbnail: true },
{ waitForThumbnail: false },
);
}
@@ -475,7 +475,7 @@ export const getFileMetadata = async (
company_id: context.company.id,
},
context,
{ ...(context.user?.server_request ? {} : { waitForThumbnail: true }) },
{ ...(context.user?.server_request ? {} : { waitForThumbnail: false }) },
);
if (!file) {
@@ -63,8 +63,8 @@ export class DocumentsController {
chunkNumber: parseInt(q.resumableChunkNumber || q.chunk_number) || 1,
filename: q.resumableFilename || q.filename || file?.filename || undefined,
type: q.resumableType || q.type || file?.mimetype || undefined,
waitForThumbnail: !!q.thumbnail_sync,
ignoreThumbnails: false,
waitForThumbnail: false,
ignoreThumbnails: true,
};
createdFile = await globalResolver.services.files.save(null, file, options, context);