Normalize to double quotes across all files with Prettier

This commit is contained in:
X4Lo committed 2026-06-21 22:28:08 +01:00
1 parent 73bff72cec
commit a5659cf4c8
190 files changed
+9523 -8859

No files matched your search

+12 -14
View File
@@ -1,6 +1,6 @@
const moment = require("../utils/moment");
const { Op } = require("sequelize")
const { Op } = require("sequelize");
const Episode = require("../models/Episode");
const Season = require("../models/Season");
const Entry = require("../models/Entry");
@@ -10,7 +10,6 @@ const Media = require("../models/Media");
const BadRequestError = require("../errors/BadRequestError");
class EpisodeService {
constructor() {
if (!EpisodeService.instance) {
EpisodeService.instance = this;
@@ -27,37 +26,37 @@ class EpisodeService {
throw new BadRequestError("end Date not provided");
}
const formatedStartDate = moment(startDate).format('YYYY-MM-DD');
const formatedEndDate = moment(endDate).format('YYYY-MM-DD');
const formatedStartDate = moment(startDate).format("YYYY-MM-DD");
const formatedEndDate = moment(endDate).format("YYYY-MM-DD");
// fetch episodes that aired within the current month, only from entries with showInCalendar enabled
const episodes = await Episode.findAll({
where: {
air_date: {
[Op.between]: [formatedStartDate, formatedEndDate]
[Op.between]: [formatedStartDate, formatedEndDate],
},
},
include: [
{
model: Season,
as: 'season',
as: "season",
include: {
model: Entry,
as: 'entry',
as: "entry",
where: { showInCalendar: true },
include: [
{ model: EntryId, as: 'entryId' },
{ model: EntryId, as: "entryId" },
{
model: Media,
as: 'medias',
as: "medias",
},
],
}
}
]
},
},
],
});
const modifiedEpisodes = episodes.map(episode => {
const modifiedEpisodes = episodes.map((episode) => {
const episodeJSON = episode.toJSON();
if (episodeJSON.season && episodeJSON.season.entry) {
episodeJSON.entry = episodeJSON.season.entry;
@@ -68,7 +67,6 @@ class EpisodeService {
return modifiedEpisodes;
}
}
module.exports = new EpisodeService();