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); }