Skip to content

Commit

Permalink
Fix splat arg usage for now
Browse files Browse the repository at this point in the history
Should be able to just throw arguments at it but for some reason it needs to be in an object for now?
  • Loading branch information
FoxxMD committed Nov 24, 2020
1 parent aa95604 commit f8eeebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/PlexSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ export default class PlexSource {
} = playObj;

if (this.users !== undefined && user !== undefined && !this.users.includes(user)) {
this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, artist, track)
this.logger.debug(`Will not scrobble webhook event because author was not an allowed user: ${user}`, { artist, track })
return false;
}

if (event !== 'media.scrobble') {
this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, artist, track)
this.logger.debug(`Will not scrobble webhook event because it is not media.scrobble (${event})`, { artist, track })
return false;
}

if (mediaType !== 'track') {
this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, artist, track);
this.logger.debug(`Will not scrobble webhook event because media type was not a track (${mediaType})`, { artist, track });
return false;
}

Expand Down

0 comments on commit f8eeebe

Please sign in to comment.