SHA256
Исправить переход смены ключей при пустых датах
This commit is contained in:
@@ -234,8 +234,10 @@ public final class KeyRotationSessionsDAO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
Long completed = next == KeyRotationStatus.COMPLETE ? now : current.getCompletedAtMs();
|
Long completed = current.getCompletedAtMs();
|
||||||
Long aborted = next == KeyRotationStatus.ABORTED ? now : current.getAbortedAtMs();
|
if (next == KeyRotationStatus.COMPLETE) completed = now;
|
||||||
|
Long aborted = current.getAbortedAtMs();
|
||||||
|
if (next == KeyRotationStatus.ABORTED) aborted = now;
|
||||||
|
|
||||||
try (PreparedStatement ps = c.prepareStatement("""
|
try (PreparedStatement ps = c.prepareStatement("""
|
||||||
UPDATE key_rotation_sessions
|
UPDATE key_rotation_sessions
|
||||||
|
|||||||
Reference in New Issue
Block a user