log: make sure to log login timestamp

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

No files matched your search

+1 -3
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?;