mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Send signalr message for episode monitored flag changes
(cherry picked from commit 9e81d41f262fb1f9d798374673b0a0427bf1a6e3) Closes #1049
This commit is contained in:
@@ -473,24 +473,24 @@ namespace NzbDrone.Core.Datastore
|
||||
}
|
||||
}
|
||||
|
||||
protected void ModelCreated(TModel model)
|
||||
protected void ModelCreated(TModel model, bool forcePublish = false)
|
||||
{
|
||||
PublishModelEvent(model, ModelAction.Created);
|
||||
PublishModelEvent(model, ModelAction.Created, forcePublish);
|
||||
}
|
||||
|
||||
protected void ModelUpdated(TModel model)
|
||||
protected void ModelUpdated(TModel model, bool forcePublish = false)
|
||||
{
|
||||
PublishModelEvent(model, ModelAction.Updated);
|
||||
PublishModelEvent(model, ModelAction.Updated, forcePublish);
|
||||
}
|
||||
|
||||
protected void ModelDeleted(TModel model)
|
||||
protected void ModelDeleted(TModel model, bool forcePublish = false)
|
||||
{
|
||||
PublishModelEvent(model, ModelAction.Deleted);
|
||||
PublishModelEvent(model, ModelAction.Deleted, forcePublish);
|
||||
}
|
||||
|
||||
private void PublishModelEvent(TModel model, ModelAction action)
|
||||
private void PublishModelEvent(TModel model, ModelAction action, bool forcePublish)
|
||||
{
|
||||
if (PublishModelEvents)
|
||||
if (PublishModelEvents || forcePublish)
|
||||
{
|
||||
_eventAggregator.PublishEvent(new ModelEvent<TModel>(model, action));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user