43 lines
694 B
JavaScript
43 lines
694 B
JavaScript
const Entry = require('../../models/Entry.js')
|
|
const EntryId = require('../../models/EntryId.js')
|
|
const EntryRating = require('../../models/EntryRating.js');
|
|
const Season = require('../../models/Season.js');
|
|
const EntryGenre = require('../../models/EntryGenre.js');
|
|
const EntrySeen = require('../../models/EntrySeen.js');
|
|
|
|
async function saveSeason(entryId) {
|
|
// fetch data from tmdb
|
|
|
|
// save season to db
|
|
|
|
}
|
|
|
|
|
|
async function updateSeason(seasonId) {
|
|
// fetch season form db
|
|
|
|
// fetch data from tmdb
|
|
|
|
// update fields
|
|
|
|
// save
|
|
|
|
}
|
|
|
|
|
|
async function getSeason() {
|
|
|
|
}
|
|
|
|
|
|
async function deleteSeason() {
|
|
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
saveSeason,
|
|
updateSeason,
|
|
getSeason,
|
|
deleteSeason,
|
|
} |