Skip to content

Commit

Permalink
#1844 rm first or default
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 26, 2024
1 parent 6725654 commit a543699
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starsky/starsky/Controllers/MetaUpdateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task<IActionResult> UpdateAsync(FileIndexItem inputModel, string f,

var (fileIndexResultsList, changedFileIndexItemName) =
await _metaPreflight.PreflightAsync(inputModel,
inputFilePaths.ToList(), append, collections, rotateClock);
[.. inputFilePaths], append, collections, rotateClock);

// Update >
await _bgTaskQueue.QueueBackgroundWorkItemAsync(async _ =>
Expand All @@ -107,15 +107,15 @@ await metaUpdateService.UpdateAsync(
return NotFound(fileIndexResultsList);
}

// Clone an new item in the list to display
// Clone a new item in the list to display
var returnNewResultList = fileIndexResultsList.Select(item => item.Clone()).ToList();

// when switching very fast between images the background task has not run yet
_metaUpdateService.UpdateReadMetaCache(returnNewResultList);

// Push direct to socket when update or replace to avoid undo after a second
_logger.LogInformation(
$"[UpdateController] send to socket {inputFilePaths.FirstOrDefault()}");
$"[UpdateController] send to socket {inputFilePaths[0]}");

await Task.Run(async () => await UpdateWebSocketTaskRun(fileIndexResultsList));

Expand Down

0 comments on commit a543699

Please sign in to comment.