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 {
@@ -147,7 +146,7 @@ export const alertsSchema = `
export async function fetchAlertsApi(req, res) {
const alerts = await fetchAlerts(req.user);
res.send(stringify(alerts));
res.send(alerts);
}
export async function fetchAlertsGraphql(query, req) {
@@ -159,7 +158,7 @@ export async function fetchAlertsGraphql(query, req) {
export async function createAlertApi(req, res) {
const alert = await createAlert(req.body, req.user);
res.send(stringify(alert));
res.send(alert);
}
export async function createAlertGraphql(query, req) {
@@ -185,7 +184,7 @@ export async function fetchNotificationsApi(req, res) {
limit: req.query.limit || 10,
});
res.send(stringify(notifications));
res.send(notifications);
}
export async function fetchNotificationsGraphql(query, req) {