mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-22 02:18:54 +01:00
Change PlaybackSession createFromOld to use upsert instead of create
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user