mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
🐛 Try fixing compilation error on vercel
This commit is contained in:
@@ -110,7 +110,8 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
const countFailed = medias.filter((x) => !x.success).length;
|
const results = await Promise.all(medias);
|
||||||
|
const countFailed = results.filter((x) => !x.success).length;
|
||||||
if (countFailed > 0) {
|
if (countFailed > 0) {
|
||||||
Consola.warn(`A total of ${countFailed} apps for the calendar widget failed`);
|
Consola.warn(`A total of ${countFailed} apps for the calendar widget failed`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user