Backend:
- Enhance PeopleController with person credits and TMDB filmography endpoints; - update episodeService to filter entries by showInCalendar; - add fetchPersonCombinedCredits function in tmdbService
This commit is contained in:
1 parent
ffe7e52527
commit
11eab03987
5 files changed
+36
-7
No files matched your search
@@ -30,7 +30,7 @@ class EpisodeService {
|
||||
const formatedStartDate = moment(startDate).format('YYYY-MM-DD');
|
||||
const formatedEndDate = moment(endDate).format('YYYY-MM-DD');
|
||||
|
||||
// fetch episodes that aired within the current month
|
||||
// fetch episodes that aired within the current month, only from entries with showInCalendar enabled
|
||||
const episodes = await Episode.findAll({
|
||||
where: {
|
||||
air_date: {
|
||||
@@ -44,6 +44,7 @@ class EpisodeService {
|
||||
include: {
|
||||
model: Entry,
|
||||
as: 'entry',
|
||||
where: { showInCalendar: true },
|
||||
include: [
|
||||
{ model: EntryId, as: 'entryId' },
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user