feat: quotas
This commit is contained in:
@@ -94,6 +94,9 @@ public sealed class MediaItemRepository : IMediaItemRepository
|
||||
.ToListAsync(ct);
|
||||
}
|
||||
|
||||
public Task<int> CountByCollectionAsync(Guid collectionId, CancellationToken ct) =>
|
||||
_db.MediaItems.CountAsync(x => x.CollectionId == collectionId, ct);
|
||||
|
||||
public async Task<Dictionary<Guid, int>> GetCountsByCollectionIdsAsync(
|
||||
IReadOnlyList<Guid> collectionIds, CancellationToken ct)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user