Skip to content

Commit

Permalink
Fix bug in retriveClan when no memberships for the clan.
Browse files Browse the repository at this point in the history
  • Loading branch information
cscatolini committed Jul 7, 2016
1 parent e42d92b commit 8314b05
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
package api

// VERSION identifies Khan's current version
var VERSION = "0.6.2"
var VERSION = "0.6.3"
18 changes: 9 additions & 9 deletions db/migrations.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions models/clan.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,10 @@ func GetClanDetails(db DB, gameID, publicID string, maxClansPerPlayer int) (util
//Otherwise return empty array of object
result["roster"] = []util.JSON{}
result["memberships"] = util.JSON{
"pending": []util.JSON{},
"banned": []util.JSON{},
"denied": []util.JSON{},
"pendingApplications": []util.JSON{},
"pendingInvites": []util.JSON{},
"banned": []util.JSON{},
"denied": []util.JSON{},
}
}

Expand Down

0 comments on commit 8314b05

Please sign in to comment.