Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

Joining a game room JSON error? #39

Open
QuinnBast opened this issue Sep 29, 2020 · 0 comments
Open

Joining a game room JSON error? #39

QuinnBast opened this issue Sep 29, 2020 · 0 comments

Comments

@QuinnBast
Copy link
Contributor

The json has a key named pivot?

{
    "id": 2,
    "created_at": "2020-09-27 18:06:53",
    "updated_at": "2020-09-27 18:06:53",
    "started_at": null,
    "closed_at": null,
    "creator_player_id": 1,
    "goal_id": 1,
    "description": "test",
    "is_rated": 1,
    "is_anonymous": 1,
    "min_rating": 0,
    "max_players": 3,
    "map": 0,
    "seed": 1601230013,
    "players": [
        {
            "id": 1,
            "created_at": "2020-09-26 04:42:56",
            "updated_at": "2020-09-26 04:42:56",
            "name": "asdfg1",
            "rating": 1200,
            "wins": 0,
            "resignations": 0,
            "last_online_at": "2020-09-26 04:42:56",
            "pivot": {
                "room_id": 2,
                "player_id": 1,
                "id": 3,
                "created_at": "2020-09-27T18:06:53.000000Z",
                "updated_at": "2020-09-27T18:06:53.000000Z"
            }
        },
        {
            "id": 2,
            "created_at": "2020-09-27 18:04:06",
            "updated_at": "2020-09-27 18:04:06",
            "name": "asdfg2",
            "rating": 1200,
            "wins": 0,
            "resignations": 0,
            "last_online_at": "2020-09-27 18:04:06",
            "pivot": {
                "room_id": 2,
                "player_id": 2,
                "id": 4,
                "created_at": "2020-09-29T02:24:34.000000Z",
                "updated_at": "2020-09-29T02:24:34.000000Z"
            }
        }
    ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant