Skip to content

Commit

Permalink
Add points to subscription response
Browse files Browse the repository at this point in the history
  • Loading branch information
aaricdev committed Dec 16, 2023
1 parent c76e9ec commit 2699420
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/mock_api/endpoints/subscriptions/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func getBroadcasterSubscriptions(w http.ResponseWriter, r *http.Request) {
body := models.APIResponse{
Data: dbr.Data,
Total: &dbr.Total,
// This would usually be something like tier 1 = 1 pt, tier 2 = 2 pts, tier 3 = 6 pts. For simplicity, return total instead
Points: dbr.Total,
}

if dbr.Cursor != "" {
Expand Down

0 comments on commit 2699420

Please sign in to comment.