diff --git a/server/cron/calendar_cron.go b/server/cron/calendar_cron.go index de4eed1869..4c6b0a6cc4 100644 --- a/server/cron/calendar_cron.go +++ b/server/cron/calendar_cron.go @@ -514,7 +514,7 @@ func getBodyTag(ctx context.Context, ds fleet.Datastore, host fleet.HostPolicyMe var policy *calendar.PolicyLiteWithMeta policyAny, ok := policyIDtoPolicy.Load(policyIDs[0]) if !ok { - id, err := strconv.ParseUint(policyIDs[0], 10, 64) + id, err := strconv.ParseUint(policyIDs[0], 10, strconv.IntSize) if err != nil { logger.ErrorContext(ctx, "parse policy id", "err", err) // Do nothing