From 47f5cade72dda27c464d701c68e5713bd806a64d Mon Sep 17 00:00:00 2001 From: patrick ansbro <66091489+pansbro12@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:14:35 +0000 Subject: [PATCH] Update client.go Co-authored-by: James Tait <32527884+Jarota@users.noreply.github.com> --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index e7a6792..c7f7e99 100644 --- a/client.go +++ b/client.go @@ -77,7 +77,7 @@ func (c *Castle) Filter(ctx context.Context, req *Request) (RecommendedAction, e Username: req.User.Name, } createdAt := req.CreatedAt - if req.CreatedAt.IsZero() { + if createdAt.IsZero() { createdAt = time.Now() } r := &castleFilterAPIRequest{