0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 08:24:08 +01:00

modules/client/user/account_data: Minor cleanup.

This commit is contained in:
Jason Volk 2020-08-23 02:31:00 -07:00
parent 77f858d27d
commit 5636ad543a

View file

@ -34,9 +34,14 @@ put__account_data(client &client,
request request
}; };
const m::user::account_data account_data
{
user
};
const auto event_id const auto event_id
{ {
m::user::account_data{user}.set(type, value) account_data.set(type, value)
}; };
return m::resource::response return m::resource::response
@ -62,7 +67,12 @@ get__account_data(client &client,
url::decode(typebuf, request.parv[2]) url::decode(typebuf, request.parv[2])
}; };
m::user::account_data{user}.get(type, [&client] const m::user::account_data account_data
{
user
};
account_data.get(type, [&client]
(const string_view &type, const json::object &value) (const string_view &type, const json::object &value)
{ {
resource::response resource::response