Fix object destructuring for song update

This commit is contained in:
An Phan 2017-01-14 21:42:11 +08:00
parent 1a3e1e7f1c
commit 8c14092c41
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -232,7 +232,7 @@ export const songStore = {
http.put('songs', {
data,
songs: map(songs, 'id')
}, ({ songs }) => {
}, ({ data: songs }) => {
each(songs, song => this.syncUpdatedSong(song))
alerts.success(`Updated ${pluralize(songs.length, 'song')}.`)
resolve(songs)