Skip to content

Commit 434146e

Browse files
committed
fix response json for GetAPISlotifyGroupsSlotifyGroupIDInvites and GetAPIInvitesMe
1 parent 6434023 commit 434146e

3 files changed

Lines changed: 106 additions & 106 deletions

File tree

api/invite_impl.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ func (s Server) GetAPIInvitesMe(w http.ResponseWriter, r *http.Request, params G
168168
}
169169

170170
response := struct {
171-
Invites []database.ListInvitesMeRow
172-
NextPageToken int
171+
Invites []database.ListInvitesMeRow `json:"invites"`
172+
NextPageToken int `json:"nextPageToken"`
173173
}{
174174
Invites: invites,
175175
NextPageToken: nextPageToken,
@@ -441,7 +441,7 @@ func (s Server) GetAPISlotifyGroupsSlotifyGroupIDInvites(w http.ResponseWriter,
441441

442442
response := struct {
443443
Invites []database.ListInvitesByGroupRow `json:"invites"`
444-
NextPageToken int `json:"nextpageToken"`
444+
NextPageToken int `json:"nextPageToken"`
445445
}{
446446
Invites: invites,
447447
NextPageToken: nextPageToken,

api/server.gen.go

Lines changed: 102 additions & 102 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shared

0 commit comments

Comments
 (0)