mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Update frontend/src/app/api/categories/route.ts
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
This commit is contained in:
parent
1c4321c466
commit
3b59f5b0ab
@ -17,7 +17,11 @@ const fetchAllMetaDataFiles = async () => {
|
||||
`https://api.github.com/repos/community-scripts/${basePath}/contents/json`,
|
||||
);
|
||||
const files = await response.json();
|
||||
const scripts: Script[] = [];
|
||||
const scripts = files.map(async (file) => {
|
||||
const response = await fetch(file.download_url);
|
||||
const script = await response.json();
|
||||
return script
|
||||
})
|
||||
for (const file of files) {
|
||||
const response = await fetch(file.download_url);
|
||||
const script = await response.json();
|
||||
|
Loading…
Reference in New Issue
Block a user