mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-22 01:18:13 +02:00
Fix server crash when updating excluded prefixes #4221
This commit is contained in:
parent
fd84cd0d7f
commit
5eaf9c69ad
@ -222,7 +222,7 @@ class MiscController {
|
||||
|
||||
// Update nameIgnorePrefix column on series
|
||||
const allSeries = await Database.seriesModel.findAll({
|
||||
attributes: ['id', 'name', 'nameIgnorePrefix']
|
||||
attributes: ['id', 'name', 'nameIgnorePrefix', 'libraryId']
|
||||
})
|
||||
const bulkUpdateSeries = []
|
||||
allSeries.forEach((series) => {
|
||||
@ -230,6 +230,8 @@ class MiscController {
|
||||
if (nameIgnorePrefix !== series.nameIgnorePrefix) {
|
||||
bulkUpdateSeries.push({
|
||||
id: series.id,
|
||||
name: series.name,
|
||||
libraryId: series.libraryId,
|
||||
nameIgnorePrefix
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user