We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5606b commit 4559e52Copy full SHA for 4559e52
src/components/WorkersTemplates.astro
@@ -10,12 +10,11 @@ const latestCommit = await fetchWithToken(
10
.then((r) => r.json())
11
.then((r) => r[0].sha);
12
13
-const res = await fetchWithToken(
+const contents = await fetchWithToken(
14
`https://api.github.com/repos/${REPO}/contents/?ref=${latestCommit}`,
15
-);
16
-const json = await res.json();
+).then((r) => r.json());
17
18
-const dirs = json.filter((ent: any) => ent.type === "dir");
+const dirs = contents.filter((ent: any) => ent.type === "dir");
19
---
20
21
{
0 commit comments