Enabled e-mail action in alert dialog and alerts overview action indicators.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user