Skip to content

Commit 39390ef

Browse files
committed
Compare current and incoming artwork JSON, not just ID
1 parent 4429d9d commit 39390ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fc.changeArtwork = function() {
291291

292292
return new Promise(function(resolve, reject) {
293293
// old artwork is new artwork, don't update.
294-
if (old_artwork && old_artwork.id === new_artwork.id) {
294+
if (old_artwork && JSON.stringify(old_artwork) === JSON.stringify(new_artwork)) {
295295
debug('new artwork same as current', old_artwork.id, new_artwork.id);
296296
return reject();
297297
}

0 commit comments

Comments
 (0)