Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Fix/14981 Blocked Vaccination and Recovery Certificates stay in Status BLOCKED after RampDown #5131

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
14981: In hibernation we set the validity state of blocked health cer…
…tificate to valid.
  • Loading branch information
flxschmidt committed Mar 30, 2023
commit 7a2e486271d4d8f37572c00f76dd4abed492a1f2
Original file line number Diff line number Diff line change
Expand Up @@ -864,10 +864,8 @@ class HealthCertificateService: HealthCertificateServiceServable {
// Hibernation
guard !CWAHibernationProvider.shared.isHibernationState else {

// In hibernation we set the validity state of any health certificate to expired or valid.
if Date() >= healthCertificate.expirationDate {
healthCertificate.validityState = .expired
} else {
// In hibernation we set the validity state of blocked health certificate to valid.
if healthCertificate.validityState == .blocked {
healthCertificate.validityState = .valid
}

Expand Down