fix: reject duplicate legacy DWH records

This commit is contained in:
User
2026-08-21 01:52:02 +02:00
parent b1079bda21
commit 943f809d01
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ func validateLegacyMultiplicity(active, revoked []storedRecord) error {
revokedCount++
}
}
if activeCount > 1 || revokedCount > 1 || activeCount+revokedCount > 2 {
if activeCount > 1 || revokedCount > 1 || activeCount+revokedCount > 1 {
return integrity(errors.New("multiple legacy records"))
}
return nil