This commit is contained in:
Hamid Reza Mohammadi 2023-07-30 13:28:07 +03:30
parent 9301b02936
commit 64ce955d56

View File

@ -168,10 +168,11 @@ namespace RMuseum.Services.Implementation
{
try
{
var queued = await _context.QueuedFTPUploads.Where(q => q.Processing).ToListAsync();
var queued = await _context.QueuedFTPUploads.Where(q => q.Processing || !string.IsNullOrEmpty(q.Error)).ToListAsync();
foreach (var queuedFTPUpload in queued)
{
queuedFTPUpload.Processing = false;
queuedFTPUpload.Error = null;
}
_context.UpdateRange(queued);
await _context.SaveChangesAsync();