Refactor media asset handling: update ListMediaAssetsQuery to accept an array of statuses, modify MediaEndpoints to handle multiple statuses, and enhance MediaProcessingQueue for improved signal handling. Update frontend components to support new status filtering and improve user experience with asset selection.
This commit is contained in:
@@ -95,7 +95,7 @@ public static class MediaEndpoints
|
||||
private static async Task<IResult> List(
|
||||
int page,
|
||||
int pageSize,
|
||||
MediaAssetStatus? status,
|
||||
MediaAssetStatus[]? status,
|
||||
string? search,
|
||||
ISender sender,
|
||||
CancellationToken cancellationToken
|
||||
@@ -105,7 +105,7 @@ public static class MediaEndpoints
|
||||
new ListMediaAssetsQuery(
|
||||
page <= 0 ? 1 : page,
|
||||
pageSize <= 0 ? 20 : pageSize,
|
||||
status,
|
||||
status ?? [],
|
||||
search
|
||||
),
|
||||
cancellationToken
|
||||
|
||||
Reference in New Issue
Block a user