mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 09:51:37 +00:00
Search podcast episode title and description
This commit is contained in:
parent
eee377e081
commit
50a4b61cbc
1 changed files with 2 additions and 2 deletions
|
|
@ -414,10 +414,10 @@ module.exports = {
|
|||
})
|
||||
}
|
||||
|
||||
// Search podcast episode title
|
||||
// Search podcast episode title and description
|
||||
const podcastEpisodes = await Database.podcastEpisodeModel.findAll({
|
||||
where: [
|
||||
Sequelize.literal(textSearchQuery.matchExpression('podcastEpisode.title')),
|
||||
Sequelize.literal(`(${textSearchQuery.matchExpression('podcastEpisode.title')} OR ${textSearchQuery.matchExpression('podcastEpisode.description')})`),
|
||||
{
|
||||
'$podcast.libraryItem.libraryId$': library.id
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue