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{