mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-06 07:59:43 +00:00
Compare commits
2 commits
fd84cd0d7f
...
9f834a5345
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f834a5345 | ||
|
|
5eaf9c69ad |
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue