Added e-mail alert settings, saveable but not integrated yet.

This commit is contained in:
2026-07-18 06:24:07 +02:00
parent 479b044798
commit 216e7f59ef
18 changed files with 231 additions and 75 deletions

View File

@@ -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) {