Skip to content

Commit

Permalink
fix(website): renterd and walletd provide latest full release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Oct 22, 2024
1 parent ae5aeec commit e811284
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/smooth-buses-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'website': minor
'@siafoundation/data-sources': minor
---

The latest walletd and renterd releases no longer include prereleases.
12 changes: 6 additions & 6 deletions libs/data-sources/src/lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ export type GitHubRelease = {
export async function getGitHubRenterdLatestDaemonRelease(): Promise<GitHubRelease | null> {
try {
const response = await axios.get(
'https://api.github.com/repos/SiaFoundation/renterd/releases?per_page=1'
'https://api.github.com/repos/SiaFoundation/renterd/releases/latest'
)
if (response.data.length) {
return response.data[0]
if (response.data) {
return response.data
} else {
return null
}
Expand Down Expand Up @@ -215,10 +215,10 @@ export async function getGitHubHostdLatestDaemonRelease(): Promise<GitHubRelease
export async function getGitHubWalletdLatestDaemonRelease(): Promise<GitHubRelease | null> {
try {
const response = await axios.get(
'https://api.github.com/repos/SiaFoundation/walletd/releases?per_page=1'
'https://api.github.com/repos/SiaFoundation/walletd/releases/latest'
)
if (response.data.length) {
return response.data[0]
if (response.data) {
return response.data
} else {
return null
}
Expand Down

0 comments on commit e811284

Please sign in to comment.