From a4f57e7f71ff1bc61ee8f8dfc93025f6911afc97 Mon Sep 17 00:00:00 2001 From: Melanija Cvetic Date: Tue, 26 Aug 2025 16:55:28 +0100 Subject: [PATCH] Fix --- internal/store/access_logs.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/store/access_logs.go b/internal/store/access_logs.go index ec6a8ae779..d852024e70 100644 --- a/internal/store/access_logs.go +++ b/internal/store/access_logs.go @@ -35,23 +35,23 @@ func (s *Store) AccessLogsByHostname(groupID, hostname string, opts *AccessLogOp if opts != nil { if opts.Start != "" { startTime, _ := strconv.ParseInt(opts.Start, 10, 64) - result.Start(startTime) + result = result.Start(startTime) } if opts.End != "" { endTime, _ := strconv.ParseInt(opts.End, 10, 64) - result.End(endTime) + result = result.End(endTime) } if opts.NLogs > 0 { - result.NLogs(opts.NLogs) + result = result.NLogs(opts.NLogs) } if opts.IPAddress != "" { - result.IpAddress(opts.IPAddress) + result = result.IpAddress(opts.IPAddress) } if opts.AuthResult != nil { - result.AuthResult(*opts.AuthResult) + result = result.AuthResult(*opts.AuthResult) } } @@ -66,23 +66,23 @@ func (s *Store) AccessLogsByClusterName(groupID, clusterName string, opts *Acces if opts != nil { if opts.Start != "" { startTime, _ := strconv.ParseInt(opts.Start, 10, 64) - result.Start(startTime) + result = result.Start(startTime) } if opts.End != "" { endTime, _ := strconv.ParseInt(opts.End, 10, 64) - result.End(endTime) + result = result.End(endTime) } if opts.NLogs > 0 { - result.NLogs(opts.NLogs) + result = result.NLogs(opts.NLogs) } if opts.IPAddress != "" { - result.IpAddress(opts.IPAddress) + result = result.IpAddress(opts.IPAddress) } if opts.AuthResult != nil { - result.AuthResult(*opts.AuthResult) + result = result.AuthResult(*opts.AuthResult) } } res, _, err := result.Execute()