fixes #1562 - Sync status included in BaseItemDto does not reflect actual sync status.

This commit is contained in:
Luke Pulverenti 2016-04-30 14:22:54 -04:00
parent 19c7c26dad
commit 04ba2d57ac

View File

@ -282,7 +282,7 @@ namespace MediaBrowser.Server.Implementations.Dto
else if (dto.HasSyncJob.Value) else if (dto.HasSyncJob.Value)
{ {
dto.SyncStatus = SyncJobItemStatus.Queued; dto.SyncStatus = syncProgress.Where(i => string.Equals(i.ItemId, dto.Id, StringComparison.OrdinalIgnoreCase)).Select(i => i.Status).Max();
} }
} }
} }
@ -307,7 +307,7 @@ namespace MediaBrowser.Server.Implementations.Dto
else if (dto.HasSyncJob.Value) else if (dto.HasSyncJob.Value)
{ {
dto.SyncStatus = SyncJobItemStatus.Queued; dto.SyncStatus = syncProgress.Where(i => string.Equals(i.ItemId, dto.Id, StringComparison.OrdinalIgnoreCase)).Select(i => i.Status).Max();
} }
} }
} }