fix: include highlighted episodes in counting number of episodes

This commit is contained in:
Hossein Mehrabi 2023-12-12 10:48:14 +03:30
parent f0136cbb69
commit 8ae8488a81
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
1 changed files with 5 additions and 1 deletions

View File

@ -893,7 +893,11 @@ export class UnbodyService {
}).then((res) => res.data)
: [],
numberOfEpisodes: await this.countDocuments(
this.helpers.args.wherePath(['Podcasts', show.slug, 'published']),
this.helpers.args.wherePath([
'Podcasts',
show.slug,
'published|highlighted',
]),
).then((res) => res.data),
})),
)