Skip to content

Commit

Permalink
🐛do not generate thumbnails tmp until it will be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shepilov committed Jan 8, 2025
1 parent 84a61c1 commit ab4c39e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export class DocumentsService {
company_id: driveItem.company_id,
},
context,
{ waitForThumbnail: true },
{ waitForThumbnail: false },
);
}

Expand Down
2 changes: 1 addition & 1 deletion tdrive/backend/node/src/services/documents/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab4c39e

Please sign in to comment.