Skip to content

Commit

Permalink
Merge pull request #85 from pastemyst/fix/changelog
Browse files Browse the repository at this point in the history
fixed changelog page
  • Loading branch information
CodeMyst authored Jul 21, 2022
2 parents 7c4b948 + da742eb commit c927616
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 c927616

Please sign in to comment.