From b268c87e51b0153c8d2d9da07669ba045c9a0ce2 Mon Sep 17 00:00:00 2001 From: toast Date: Thu, 1 Jul 2021 17:20:02 -0700 Subject: [PATCH] properly call upload again with thumbnails --- common/file-utilities.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/file-utilities.js b/common/file-utilities.js index 48ee80c7..c80007bd 100644 --- a/common/file-utilities.js +++ b/common/file-utilities.js @@ -207,8 +207,15 @@ export const upload = async ({ item.data.blurhash = blurhash; let res = thumbnail - ? await upload({ file: thumbail, context: this, isThumbnail: true }) + ? await upload({ + file: thumbail, + context: this, + isThumbnail: true, + ...routes, + ...bucketName, + }) : null; + item.data.thumbnail = res; } catch (e) { Logging.error(e); }