Skip to content

Commit

Permalink
Fix old YouTube ID for availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Jul 17, 2018
1 parent be32b86 commit cbca703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ export default Model.extend(Validations, {
return
}

yield this.updateYoutubeId()
const ytid = this.get('ytid')

let isAvailable = yield fetchTrackAvailability(ytid)
this.set('mediaNotAvailable', !isAvailable)

yield this.updateYoutubeId();
yield this.save()
}).drop(),

Expand Down

0 comments on commit cbca703

Please sign in to comment.