Skip to content

Commit

Permalink
fixed changelog page
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMyst committed Jul 21, 2022
1 parent 7c4b948 commit da742eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions api/changelog/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (

// Information about a single app release.
type Release struct {
URL string `json:"url"` // Link to the GitHub release.
Title string `json:"title"` // Release Title.
Content string `json:"content"` // Markdown content.
IsPrerelease bool `json:"is_prerelease"` // Whether it a pre-release (alpha).
ReleasedAt time.Time `json:"released_at"` // When the release was published.
URL string `json:"url"` // Link to the GitHub release.
Title string `json:"title"` // Release Title.
Content string `json:"content"` // Markdown content.
IsPrerelease bool `json:"isPrerelease"` // Whether it a pre-release (alpha).
ReleasedAt time.Time `json:"releasedAt"` // When the release was published.
}

// Data returned from GitHub when fetching all the releases.
Expand Down
4 changes: 2 additions & 2 deletions client/src/lib/api/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const getReleases = async(): Promise<Release[]> => {
method: "get"
});

if (res.ok) return await res.json();
if (res.ok) return (await res.json()).releases;

return [];
};
Expand All @@ -36,4 +36,4 @@ export const getActivePastes = async (): Promise<number> => {
if (res.ok) return (await res.json()).count;

return 0;
};
};

0 comments on commit da742eb

Please sign in to comment.