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
+1
View File
@@ -151,6 +151,7 @@ func (l *UserRegisterLogic) UserRegister(req *types.UserRegisterRequest) (resp *
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{