Skip to content

Commit

Permalink
Fix crash when quick match adds new series
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Sep 9, 2024
1 parent 0344a63 commit f892453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/scanner/Scanner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const Logger = require('../Logger')
const SocketAuthority = require('../SocketAuthority')
const Database = require('../Database')
const { getTitleIgnorePrefix } = require('../utils/index')

// Utils
const { findMatchingEpisodesInFeed, getPodcastFeed } = require('../utils/podcastUtils')
Expand Down Expand Up @@ -230,7 +231,7 @@ class Scanner {
seriesItem = await Database.seriesModel.create({
name: seriesMatchItem.series,
nameIgnorePrefix: getTitleIgnorePrefix(seriesMatchItem.series),
libraryId
libraryId: libraryItem.libraryId
})
// Update filter data
Database.addSeriesToFilterData(libraryItem.libraryId, seriesItem.name, seriesItem.id)
Expand Down

0 comments on commit f892453

Please sign in to comment.