Added e-mail alert settings, saveable but not integrated yet.
This commit is contained in:
+3
-5
@@ -1,5 +1,3 @@
|
||||
import { stringify } from '@brillout/json-serializer/stringify';
|
||||
|
||||
import promiseProps from '../../utils/promise-props.js';
|
||||
import slugify from '../../utils/slugify.js';
|
||||
import { getIdsBySlug } from '../cache.js';
|
||||
@@ -35,7 +33,7 @@ export async function fetchMoviesApi(req, res) {
|
||||
limit: Number(req.query.limit) || 30,
|
||||
}, req.user, { restriction: req.restriction });
|
||||
|
||||
res.send(stringify({
|
||||
res.send({
|
||||
movies,
|
||||
aggYears,
|
||||
aggActors,
|
||||
@@ -43,7 +41,7 @@ export async function fetchMoviesApi(req, res) {
|
||||
aggChannels,
|
||||
limit,
|
||||
total,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
export async function fetchMovieApi(req, res) {
|
||||
@@ -53,7 +51,7 @@ export async function fetchMovieApi(req, res) {
|
||||
throw new HttpError(`No movie with ID ${req.params.movieId} found`, 404);
|
||||
}
|
||||
|
||||
res.send(stringify(movie));
|
||||
res.send(movie);
|
||||
}
|
||||
|
||||
export const moviesSchema = `
|
||||
|
||||
Reference in New Issue
Block a user