Added e-mail alert settings, saveable but not integrated yet.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { stringify } from '@brillout/json-serializer/stringify';
|
||||
import { Router } from 'express';
|
||||
|
||||
import promiseProps from '../../utils/promise-props.js';
|
||||
@@ -74,7 +73,7 @@ async function fetchScenesApi(req, res) {
|
||||
restriction: req.restriction,
|
||||
});
|
||||
|
||||
res.send(stringify({
|
||||
res.send({
|
||||
scenes,
|
||||
aggYears,
|
||||
aggActors,
|
||||
@@ -83,7 +82,7 @@ async function fetchScenesApi(req, res) {
|
||||
aggChannels,
|
||||
limit,
|
||||
total,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
export const scenesSchema = `
|
||||
@@ -261,7 +260,7 @@ async function fetchSceneApi(req, res) {
|
||||
throw new HttpError(`No scene with ID ${req.params.sceneId} found`, 404);
|
||||
}
|
||||
|
||||
res.send(stringify(scene));
|
||||
res.send(scene);
|
||||
}
|
||||
|
||||
export async function fetchScenesByIdGraphql(query, req) {
|
||||
@@ -281,7 +280,7 @@ export async function fetchScenesByIdGraphql(query, req) {
|
||||
async function fetchSceneRevisionsApi(req, res) {
|
||||
const revisions = await fetchSceneRevisions(Number(req.params.revisionId) || null, req.query, req.user);
|
||||
|
||||
res.send(stringify(revisions));
|
||||
res.send(revisions);
|
||||
}
|
||||
|
||||
async function createSceneRevisionApi(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user