mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-26 03:56:16 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5eaf9c69ad |
@@ -222,7 +222,7 @@ class MiscController {
|
|||||||
|
|
||||||
// Update nameIgnorePrefix column on series
|
// Update nameIgnorePrefix column on series
|
||||||
const allSeries = await Database.seriesModel.findAll({
|
const allSeries = await Database.seriesModel.findAll({
|
||||||
attributes: ['id', 'name', 'nameIgnorePrefix']
|
attributes: ['id', 'name', 'nameIgnorePrefix', 'libraryId']
|
||||||
})
|
})
|
||||||
const bulkUpdateSeries = []
|
const bulkUpdateSeries = []
|
||||||
allSeries.forEach((series) => {
|
allSeries.forEach((series) => {
|
||||||
@@ -230,6 +230,8 @@ class MiscController {
|
|||||||
if (nameIgnorePrefix !== series.nameIgnorePrefix) {
|
if (nameIgnorePrefix !== series.nameIgnorePrefix) {
|
||||||
bulkUpdateSeries.push({
|
bulkUpdateSeries.push({
|
||||||
id: series.id,
|
id: series.id,
|
||||||
|
name: series.name,
|
||||||
|
libraryId: series.libraryId,
|
||||||
nameIgnorePrefix
|
nameIgnorePrefix
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user