mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 02:03:08 +02:00
Fix bug
This commit is contained in:
parent
c5ef18bc7a
commit
79821f00fb
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ export default async function(
|
||||||
|
|
||||||
const properties = {};
|
const properties = {};
|
||||||
|
|
||||||
let propPromises = [];
|
let propPromises: Array<Promise<void>> = [];
|
||||||
|
|
||||||
const isImage = ['image/jpeg', 'image/gif', 'image/png'].includes(mime);
|
const isImage = ['image/jpeg', 'image/gif', 'image/png'].includes(mime);
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ export default async function(
|
||||||
propPromises = [calcWh(), calcAvg()];
|
propPromises = [calcWh(), calcAvg()];
|
||||||
}
|
}
|
||||||
|
|
||||||
const [folder] = await Promise.all([fetchFolder(), propPromises]);
|
const [folder] = await Promise.all([fetchFolder(), Promise.all(propPromises)]);
|
||||||
|
|
||||||
const metadata = {
|
const metadata = {
|
||||||
userId: user._id,
|
userId: user._id,
|
||||||
|
|
Loading…
Reference in a new issue