| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2017-12-01 11:09:10 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2017-12-01 11:09:10 +0100 | 
| commit | 90cdec82cf0c29d00c0c90fd0746ae4fa00d92f3 (patch) | |
| tree | fb24f9002f3519e3c4cf19b255b21bf985beadcb /src/query/character_turn.erl | |
| parent | 9debe2ae27ccdacbd65f0636a84a64ec4762b8af (diff) | |
Updates the way targets are received from client.
Diffstat (limited to 'src/query/character_turn.erl')
| -rw-r--r-- | src/query/character_turn.erl | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/query/character_turn.erl b/src/query/character_turn.erl index 806a775..6bb3c0e 100644 --- a/src/query/character_turn.erl +++ b/src/query/character_turn.erl @@ -47,6 +47,11 @@ parse_input (Req) ->     PlayerID = maps:get(<<"player_id">>, JSONReqMap),     SessionToken =  maps:get(<<"session_token">>, JSONReqMap),     database_shim:assert_session_is_valid(PlayerID, SessionToken), +   Target = +      case maps:get(<<"targets_id">>, JSONReqMap) of +         [] -> ""; +         [T] -> T +      end,     #input     {        player_id = PlayerID, @@ -54,7 +59,7 @@ parse_input (Req) ->        instance_id = maps:get(<<"instance_id">>, JSONReqMap),        char_id = maps:get(<<"char_id">>, JSONReqMap),        path = maps:get(<<"path">>, JSONReqMap), -      target_id = maps:get(<<"target_id">>, JSONReqMap) +      target_id = Target     }.  fetch_data (Input) -> | 


