mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
Fixed: Backend Updates from Sonarr
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com> Co-Authored-By: taloth <taloth@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,8 @@ namespace Radarr.Http
|
||||
|
||||
public void Handle(ModelEvent<TModel> message)
|
||||
{
|
||||
if (!_signalRBroadcaster.IsConnected) return;
|
||||
|
||||
if (message.Action == ModelAction.Deleted || message.Action == ModelAction.Sync)
|
||||
{
|
||||
BroadcastResourceChange(message.Action);
|
||||
@@ -35,6 +37,8 @@ namespace Radarr.Http
|
||||
|
||||
protected void BroadcastResourceChange(ModelAction action, int id)
|
||||
{
|
||||
if (!_signalRBroadcaster.IsConnected) return;
|
||||
|
||||
if (action == ModelAction.Deleted)
|
||||
{
|
||||
BroadcastResourceChange(action, new TResource {Id = id});
|
||||
@@ -48,6 +52,8 @@ namespace Radarr.Http
|
||||
|
||||
protected void BroadcastResourceChange(ModelAction action, TResource resource)
|
||||
{
|
||||
if (!_signalRBroadcaster.IsConnected) return;
|
||||
|
||||
if (GetType().Namespace.Contains("V2"))
|
||||
{
|
||||
var signalRMessage = new SignalRMessage
|
||||
@@ -63,6 +69,8 @@ namespace Radarr.Http
|
||||
|
||||
protected void BroadcastResourceChange(ModelAction action)
|
||||
{
|
||||
if (!_signalRBroadcaster.IsConnected) return;
|
||||
|
||||
if (GetType().Namespace.Contains("V2"))
|
||||
{
|
||||
var signalRMessage = new SignalRMessage
|
||||
|
||||
Reference in New Issue
Block a user