Change PlaybackSession createFromOld to use upsert instead of create

This commit is contained in:
mikiher 2024-09-18 18:01:36 +03:00
parent 22ad16e11b
commit 942bd0859f

View File

@ -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
})
}