todo: really fix UserLogoutApi
This commit is contained in:
@@ -153,7 +153,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
|
||||
user_id,
|
||||
UserLogoutApi {
|
||||
user_id,
|
||||
date_time: timestamp,
|
||||
login_date_time: timestamp,
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ pub async fn login_action<R>(
|
||||
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
|
||||
) -> Result<R, ApiError> {
|
||||
let login = UserLoginApi::new(user_id, true, token);
|
||||
let date_time = login.date_time;
|
||||
let login_date_time = login.date_time;
|
||||
|
||||
let login_resp: UserLoginApiResp =
|
||||
Sdgb1_53::request(&client, APIMethod::UserLoginApi, user_id, login).await?;
|
||||
@@ -37,7 +37,7 @@ pub async fn login_action<R>(
|
||||
user_id,
|
||||
UserLogoutApi {
|
||||
user_id,
|
||||
date_time,
|
||||
login_date_time,
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user