log: make sure to log login timestamp

This commit is contained in:
mokurin000
2025-08-02 16:07:58 +08:00
parent fe008cca67
commit 45cba29b23
2 changed files with 6 additions and 5 deletions

View File

@@ -17,11 +17,9 @@ pub async fn login_action<R>(
user_id: u32,
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
) -> Result<R, ApiError> {
let login = UserLoginApi::new(user_id);
let login = UserLoginApi::new(user_id, true);
let date_time = login.date_time;
info!("login unix timestamp: {date_time}");
let login_resp: UserLoginApiResp =
Sdgb1_50::request(&client, APIMethod::UserLoginApi, user_id, login).await?;