| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2019-01-04 17:25:39 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2019-01-04 17:25:39 +0100 | 
| commit | 83cd7ce064b8a46a106dc855d748b1bd7e45af01 (patch) | |
| tree | cee5d4e3d21936925f8108940c35533f9f6484f5 /src/login/reply/lgn_set_session.erl | |
| parent | 895a5348f521b16b3a6e32d921f7f23ec8f3036e (diff) | |
Removes 'id' field from ataxia entry values.
While sometimes usefull as a way to retrieve the object's ID, they were
both redundant (you can't get the object without its ID anyway) and
bothersome to maintain (insert + update, which would have required
setting up a bounty for any insert).
Diffstat (limited to 'src/login/reply/lgn_set_session.erl')
| -rw-r--r-- | src/login/reply/lgn_set_session.erl | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/src/login/reply/lgn_set_session.erl b/src/login/reply/lgn_set_session.erl index f033d91..233f8db 100644 --- a/src/login/reply/lgn_set_session.erl +++ b/src/login/reply/lgn_set_session.erl @@ -7,7 +7,7 @@  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --export([generate/1]). +-export([generate/2]).  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -16,15 +16,14 @@  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --spec generate (shr_player:type()) -> {list(any())}. -generate (Player) -> -   PID = shr_player:get_id(Player), +-spec generate (shr_player:id(), shr_player:type()) -> {list(any())}. +generate (PlayerID, Player) ->     SessionToken = shr_player:get_token(Player),     {        [           {<<"msg">>, <<"sse">>}, -         {<<"pid">>, PID}, +         {<<"pid">>, PlayerID},           {<<"stk">>, SessionToken}        ]     }.  | 


