From 80fdb7cd014b952186c8eb3edabed7705afd9d97 Mon Sep 17 00:00:00 2001 From: agautam Date: Fri, 14 Apr 2023 12:57:05 -0700 Subject: [PATCH] Fixed the nil pointer issues in the InactiveDomain Invariant --- common/reconciliation/invariant/inactiveDomainExists.go | 2 +- service/worker/scanner/executions/types.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/reconciliation/invariant/inactiveDomainExists.go b/common/reconciliation/invariant/inactiveDomainExists.go index 3dd6244efa1..796992f5c16 100644 --- a/common/reconciliation/invariant/inactiveDomainExists.go +++ b/common/reconciliation/invariant/inactiveDomainExists.go @@ -82,7 +82,7 @@ func (idc *inactiveDomainExists) Check( CheckResultType: CheckResultTypeCorrupted, InvariantName: idc.Name(), Info: "failed check: domain is not active", - InfoDetails: err.Error(), + InfoDetails: "The domain has been deprecated or deleted", } } diff --git a/service/worker/scanner/executions/types.go b/service/worker/scanner/executions/types.go index b8e7bb8e316..c2e6f888bd0 100644 --- a/service/worker/scanner/executions/types.go +++ b/service/worker/scanner/executions/types.go @@ -100,9 +100,7 @@ func (st ScanType) ToInvariants(collections []invariant.Collection) []InvariantF switch collection { case invariant.CollectionDomain: fns = append(fns, invariant.NewInactiveDomainExists) - case invariant.CollectionHistory: - fns = append(fns, invariant.NewHistoryExists) case invariant.CollectionMutableState: fns = append(fns, invariant.NewOpenCurrentExecution)