Skip to content

Commit 41001a4

Browse files
committed
Merge pull request #6 from OpenframeProject/repush
Compare current and incoming artwork JSON, not just ID
2 parents 4429d9d + 39390ef commit 41001a4

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)