Skip to content

Commit

Permalink
Merge pull request #276 from BarryCarlyon/fix274
Browse files Browse the repository at this point in the history
Fix274
  • Loading branch information
Xemdo authored Sep 22, 2023
2 parents 48df769 + 2383e48 commit 323c804
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/mock_api/endpoints/charity/donations.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ var donationsScopesByMethod = map[string][]string{
type CharityDonations struct{}

type GetCharityDonationsResponse struct {
ID string `json:"campaign_id"`
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
Amount CharityAmount `json:"amount"`
ID string `json:"campaign_id"`
UserID string `json:"user_id"`
UserLogin string `json:"user_login"`
UserName string `json:"user_name"`
TargetAmount CharityAmount `json:"target_amount"`
}

func (e CharityDonations) Path() string { return "/charity/donations" }
Expand Down Expand Up @@ -102,7 +102,7 @@ func getCharityDonations(w http.ResponseWriter, r *http.Request) {
UserID: userCtx.UserID,
UserName: user.DisplayName,
UserLogin: user.UserLogin,
Amount: CharityAmount{
TargetAmount: CharityAmount{
Value: rand.Intn(150000-300) + 300, // Between $3 and $1,500
DecimalPlaces: 2,
Currency: "USD",
Expand Down

0 comments on commit 323c804

Please sign in to comment.