Compare commits

...

2 commits

Author SHA1 Message Date
advplyr
9f834a5345
Merge pull request #4234 from advplyr/fix_exclude_prefixes_crash
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run
Fix server crash when updating excluded prefixes #4221
2025-04-28 16:57:38 -05:00
advplyr
5eaf9c69ad Fix server crash when updating excluded prefixes #4221 2025-04-28 16:40:06 -05:00

View file

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