mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(archival): ♻ inline local
This commit is contained in:
parent
e4d9aae065
commit
92cc505faa
1 changed files with 1 additions and 2 deletions
|
|
@ -25,9 +25,8 @@ public Handler(IDirectoryApi directory)
|
|||
|
||||
public async Task<Unit> Handle(Command request, CancellationToken cancellationToken)
|
||||
{
|
||||
var lists = await _directory.GetListsAsync(cancellationToken);
|
||||
var r = new Random();
|
||||
foreach (var list in lists.OrderBy(_ => r.Next()))
|
||||
foreach (var list in (await _directory.GetListsAsync(cancellationToken)).OrderBy(_ => r.Next()))
|
||||
{
|
||||
new ArchiveList.Command(list.Id).EnqueueBackgroundJob();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue