mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 12:49:38 +00:00
Change PlaybackSession createFromOld to use upsert instead of create
This commit is contained in:
parent
22ad16e11b
commit
942bd0859f
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class PlaybackSession extends Model {
|
|||
|
||||
static createFromOld(oldPlaybackSession) {
|
||||
const playbackSession = this.getFromOld(oldPlaybackSession)
|
||||
return this.create(playbackSession, {
|
||||
return this.upsert(playbackSession, {
|
||||
silent: true
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue