properly call upload again with thumbnails

This commit is contained in:
toast 2021-07-01 17:20:02 -07:00
parent 4ab3cda094
commit b268c87e51

View File

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