mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
properly call upload again with thumbnails
This commit is contained in:
parent
4ab3cda094
commit
b268c87e51
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user