mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 09:51:37 +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) {
|
static createFromOld(oldPlaybackSession) {
|
||||||
const playbackSession = this.getFromOld(oldPlaybackSession)
|
const playbackSession = this.getFromOld(oldPlaybackSession)
|
||||||
return this.create(playbackSession, {
|
return this.upsert(playbackSession, {
|
||||||
silent: true
|
silent: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue