Merge pull request #6866 from HJianBo/remove_connected_at_feild

fix(webhook): remove the connected_at field for client.connect
This commit is contained in:
JianBo He 2022-01-27 10:41:53 +08:00 committed by GitHub
commit 4cdd529b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -93,7 +93,6 @@ on_client_connect(ConnInfo = #{clientid := ClientId, username := Username, peern
, ipaddress => iolist_to_binary(ntoa(Peerhost))
, keepalive => maps:get(keepalive, ConnInfo)
, proto_ver => maps:get(proto_ver, ConnInfo)
, connected_at => maps:get(connected_at, ConnInfo)
},
send_http_request(ClientId, Params).

View File

@ -52,8 +52,7 @@ prop_client_connect() ->
username => maybe(maps:get(username, ConnInfo)),
ipaddress => peer2addr(maps:get(peername, ConnInfo)),
keepalive => maps:get(keepalive, ConnInfo),
proto_ver => maps:get(proto_ver, ConnInfo),
connected_at => maps:get(connected_at, ConnInfo)
proto_ver => maps:get(proto_ver, ConnInfo)
}),
true
end).