#403 bug fix
This commit is contained in:
parent
9301b02936
commit
64ce955d56
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user