mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 13:02:23 -07:00
Misc Fixes and Better Logging/Rejection Messages for Track Import
This commit is contained in:
parent
425a9045b8
commit
8e626269d1
9 changed files with 24 additions and 46 deletions
|
@ -218,16 +218,12 @@ class SignalRConnector extends Component {
|
|||
}
|
||||
|
||||
handleTrack = (body) => {
|
||||
const action = body.action;
|
||||
const section = 'tracks';
|
||||
|
||||
if (action === 'updated') {
|
||||
if (body.action === 'updated') {
|
||||
this.props.updateItem({
|
||||
section,
|
||||
section: 'tracks',
|
||||
updateOnly: true,
|
||||
...body.resource
|
||||
});
|
||||
} else if (action === 'deleted') {
|
||||
this.props.removeItem({ section, id: body.resource.id });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue