Skip to content

Commit

Permalink
* Update some playlist attribuites too during import for existing pla…
Browse files Browse the repository at this point in the history
…ylists
  • Loading branch information
PikachuEXE committed Nov 4, 2024
1 parent 8d38519 commit 373efdf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/renderer/components/data-settings/data-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,13 @@ export default defineComponent({
this.addVideo(payload)
}
})
// Update playlist's `lastUpdatedAt`
this.updatePlaylist({ _id: existingPlaylist._id })
// Update playlist's `lastUpdatedAt` & other attributes
this.updatePlaylist({
_id: existingPlaylist._id,
// Only these attributes would be updated (besides videos)
playlistName: playlistObject.playlistName,
description: playlistObject.description,
})
})

showToast(this.$t('Settings.Data Settings.All playlists has been successfully imported'))
Expand Down

0 comments on commit 373efdf

Please sign in to comment.