BE: add season service
This commit is contained in:
1 parent
252d7093b2
commit
a750ad16a3
1 file changed
+43
@@ -0,0 +1,43 @@
|
||||
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,
|
||||
}
|
||||
Reference in new issue
Block a user