fix playouts that use shows or seasons (#65)

This commit is contained in:
Jason Dove
2021-03-13 00:50:17 +00:00
committed by GitHub
parent 4953617f79
commit c07e2afff4
@@ -185,7 +185,7 @@ namespace ErsatzTV.Infrastructure.Data.Repositories
public Task<bool> IsCustomPlaybackOrder(int collectionId) =>
_dbConnection.QuerySingleAsync<bool>(
@"SELECT UseCustomPlaybackOrder FROM Collection WHERE Id = @CollectionId",
@"SELECT IFNULL(MIN(UseCustomPlaybackOrder), 0) FROM Collection WHERE Id = @CollectionId",
new { CollectionId = collectionId });
private async Task<List<MediaItem>> GetItemsForCollection(Collection collection)