|
|
@ -314,9 +314,18 @@ namespace Squidex.Infrastructure.Commands |
|
|
await persistence.ReadAsync(); |
|
|
await persistence.ReadAsync(); |
|
|
|
|
|
|
|
|
if (persistence.IsSnapshotStale) |
|
|
if (persistence.IsSnapshotStale) |
|
|
|
|
|
{ |
|
|
|
|
|
try |
|
|
{ |
|
|
{ |
|
|
await persistence.WriteSnapshotAsync(Snapshot); |
|
|
await persistence.WriteSnapshotAsync(Snapshot); |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
log.LogError(ex, w => w |
|
|
|
|
|
.WriteProperty("action", "RepairSnapshot") |
|
|
|
|
|
.WriteProperty("status", "Failed")); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|