diff options
| author | Adam <[email protected]> | 2025-10-03 09:34:17 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-03 09:34:17 -0500 |
| commit | 79764c8c4c79d0a6c19035ed3742dde116550a7e (patch) | |
| tree | f61427a9275dd024cd4ae10f515153dc56ff1c5b /packages/console/app/src/lib/github.ts | |
| parent | 006cb5b36d738072953d375bd57f2a3b2bafa178 (diff) | |
| download | opencode-79764c8c4c79d0a6c19035ed3742dde116550a7e.tar.gz opencode-79764c8c4c79d0a6c19035ed3742dde116550a7e.zip | |
fix: github stats
Diffstat (limited to 'packages/console/app/src/lib/github.ts')
| -rw-r--r-- | packages/console/app/src/lib/github.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/console/app/src/lib/github.ts b/packages/console/app/src/lib/github.ts index c06a6a507..5f742aef6 100644 --- a/packages/console/app/src/lib/github.ts +++ b/packages/console/app/src/lib/github.ts @@ -8,18 +8,8 @@ export const github = query(async () => { } try { const [meta, releases, contributors] = await Promise.all([ - fetch("https://api.github.com/repos/sst/opencode", { headers }).then(async (res) => { - const text = await res.text() - console.log(text) - const json = JSON.parse(text) - return json - }), - fetch("https://api.github.com/repos/sst/opencode/releases", { headers }).then(async (res) => { - const text = await res.text() - console.log(text) - const json = JSON.parse(text) - return json - }), + fetch("https://api.github.com/repos/sst/opencode", { headers }).then((res) => res.json()), + fetch("https://api.github.com/repos/sst/opencode/releases", { headers }).then((res) => res.json()), fetch("https://api.github.com/repos/sst/opencode/contributors?per_page=1", { headers }), ]) const [release] = releases |
