diff --git a/internal/web/helpers/user_must_auth.go b/internal/web/helpers/user_must_auth.go index 46ef8899..376a58e2 100644 --- a/internal/web/helpers/user_must_auth.go +++ b/internal/web/helpers/user_must_auth.go @@ -46,9 +46,8 @@ func init() { if err != nil { logs.Error(err) } else { - var countNodeLogs = countNodeLogsResp.Count - if countNodeLogs > 0 { - countUnreadNodeLogs = countNodeLogs + countUnreadNodeLogs = countNodeLogsResp.Count + if countUnreadNodeLogs > 0 { if countUnreadNodeLogs >= 100 { countUnreadNodeLogs = 99 }