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 {
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user