fix(log): update timestamp handling in login and registration logs

This commit is contained in:
Chang lue Tsen
2025-09-02 14:12:06 -04:00
parent d578dca17e
commit fe629e59dd
8 changed files with 8 additions and 1 deletions
@@ -49,6 +49,7 @@ func (l *ResetPasswordLogic) ResetPassword(req *types.ResetPasswordRequest) (res
LoginIP: req.IP,
UserAgent: req.UserAgent,
Success: loginStatus,
Timestamp: time.Now().UnixMilli(),
}
content, _ := loginLog.Marshal()
if err := l.svcCtx.LogModel.Insert(l.ctx, &log.SystemLog{