Skip to content

Commit

Permalink
ContentLength in createThumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Jan 28, 2025
1 parent 0cdae4c commit 28e962e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ export default async function createThumbnails(
activityLogger.info({ pickedThumbnails });
await concatThumbs(workingDir, pickedThumbnails);
activityLogger.info('Uploading hovernail');
const path = join(workingDir, 'hovernail.jpg');
await retryablePutFile({
to: 'PUBLIC',
key: `${uploadRecordId}/hovernail.jpg`,
contentType: 'image/jpeg',
path: join(workingDir, 'hovernail.jpg'),
contentLength: (await stat(path)).size,
path,
cancelSignal: Context.current().cancellationSignal,
});
Context.current().heartbeat();
Expand Down

0 comments on commit 28e962e

Please sign in to comment.