Fix:Crash on podcast library page sort by title #2069

This commit is contained in:
advplyr 2023-09-09 14:56:36 -05:00
parent e80b313a7b
commit e2cca60853

View File

@ -81,7 +81,7 @@ module.exports = {
if (global.ServerSettings.sortingIgnorePrefix) {
return [[Sequelize.literal('titleIgnorePrefix COLLATE NOCASE'), dir]]
} else {
return [[Sequelize.literal('title COLLATE NOCASE'), dir]]
return [[Sequelize.literal('`podcast`.`title` COLLATE NOCASE'), dir]]
}
} else if (sortBy === 'media.numTracks') {
return [['numEpisodes', dir]]