Pre-Shakeout (#1429)
* Fixed zindex on some buttons due to a bug being fixed by bootstrap. Tweaked some styles from new bootstrap design. * Fixed a bug where scan series, when generating cover images wouldn't emit cover updates to the UI. * Fixed an issue where opening directory picker to change bookmark directory then clicking Share without chaning directory, would show the field as empty. * Updating workflow * Reverting version Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
6ebad6cb48
commit
e9c5cf3c92
8 changed files with 20 additions and 27 deletions
|
|
@ -316,11 +316,8 @@ public class MetadataService : IMetadataService
|
|||
|
||||
await RemoveAbandonedMetadataKeys();
|
||||
|
||||
if (_unitOfWork.HasChanges() && await _unitOfWork.CommitAsync())
|
||||
{
|
||||
await _eventHub.SendMessageAsync(MessageFactory.CoverUpdate, MessageFactory.CoverUpdateEvent(series.Id, MessageFactoryEntityTypes.Series), false);
|
||||
await FlushEvents();
|
||||
}
|
||||
await _eventHub.SendMessageAsync(MessageFactory.CoverUpdate, MessageFactory.CoverUpdateEvent(series.Id, MessageFactoryEntityTypes.Series), false);
|
||||
await FlushEvents();
|
||||
|
||||
_logger.LogInformation("[MetadataService] Updated metadata for {SeriesName} in {ElapsedMilliseconds} milliseconds", series.Name, sw.ElapsedMilliseconds);
|
||||
}
|
||||
|
|
@ -328,6 +325,7 @@ public class MetadataService : IMetadataService
|
|||
private async Task FlushEvents()
|
||||
{
|
||||
// Send all events out now that entities are saved
|
||||
_logger.LogDebug("Dispatching {Count} update events", _updateEvents.Count);
|
||||
foreach (var updateEvent in _updateEvents)
|
||||
{
|
||||
await _eventHub.SendMessageAsync(MessageFactory.CoverUpdate, updateEvent, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue