jackpine / biketag-ios

http://biketag.jackpine.me
1 stars 1 forks source link

inconsistent current_spots ordering #119

Closed michaelkirk closed 8 years ago

michaelkirk commented 8 years ago

Getting the wrong current_spot id for games list vs individual game endpoints.

GET games.json incorrectly returns

[...
  {
    created_at: "2015-06-16T02:13:41.199Z",
    current_spot_id: 6,
    id: 8,
    name: "Game 8",
    spot_ids: [37, 6]
  },
...]

Whereas GET /games/8.json (correctly) returns

 {
    created_at: "2015-06-16T02:13:41.199Z",
    current_spot_id: 37,
    id: 8,
    name: "Game 8",
    spot_ids: [37, 6]
}
michaelkirk commented 8 years ago

This was an issue that I actually fixed here: but failed to deploy to production. It was successfully deployed last friday.

michaelkirk commented 8 years ago

fixed by https://github.com/jackpine/biketag-api/commit/4ea635a89d6d927b97b65548dff69cdd4f4a7a16