fix
This commit is contained in:
parent
972c97aa23
commit
e4877d18b0
@ -196,7 +196,8 @@ format_event(LocationCode, DynamicLocationCode, EventType, #{<<"event_code">> :=
|
||||
true ->
|
||||
Len = length(FakeLocationCodes),
|
||||
RandomIndex = rand:uniform(Len),
|
||||
lists:nth(RandomIndex, FakeLocationCodes);
|
||||
Code = lists:nth(RandomIndex, FakeLocationCodes),
|
||||
list_to_binary(Code);
|
||||
false ->
|
||||
LocationCode
|
||||
end,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user