Enabled e-mail action in alert dialog and alerts overview action indicators.

This commit is contained in:
2026-07-18 01:02:03 +02:00
parent b6408f3244
commit 981205efaa
15 changed files with 69 additions and 53 deletions

View File

@@ -1,3 +1,4 @@
import { stringify } from '@brillout/json-serializer/stringify';
import { Router } from 'express';
import {
@@ -146,7 +147,7 @@ export const alertsSchema = `
export async function fetchAlertsApi(req, res) {
const alerts = await fetchAlerts(req.user);
res.send(alerts);
res.send(stringify(alerts));
}
export async function fetchAlertsGraphql(query, req) {
@@ -158,7 +159,7 @@ export async function fetchAlertsGraphql(query, req) {
export async function createAlertApi(req, res) {
const alert = await createAlert(req.body, req.user);
res.send(alert);
res.send(stringify(alert));
}
export async function createAlertGraphql(query, req) {
@@ -184,7 +185,7 @@ export async function fetchNotificationsApi(req, res) {
limit: req.query.limit || 10,
});
res.send(notifications);
res.send(stringify(notifications));
}
export async function fetchNotificationsGraphql(query, req) {