mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/client/user/account_data: Minor cleanup.
This commit is contained in:
parent
77f858d27d
commit
5636ad543a
1 changed files with 12 additions and 2 deletions
|
@ -34,9 +34,14 @@ put__account_data(client &client,
|
|||
request
|
||||
};
|
||||
|
||||
const m::user::account_data account_data
|
||||
{
|
||||
user
|
||||
};
|
||||
|
||||
const auto event_id
|
||||
{
|
||||
m::user::account_data{user}.set(type, value)
|
||||
account_data.set(type, value)
|
||||
};
|
||||
|
||||
return m::resource::response
|
||||
|
@ -62,7 +67,12 @@ get__account_data(client &client,
|
|||
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)
|
||||
{
|
||||
resource::response
|
||||
|
|
Loading…
Reference in a new issue