This commit is contained in:
Matteo Pagliazzi
2020-03-01 20:53:33 +01:00
parent 118e3580d6
commit a11e4d0512
3 changed files with 5 additions and 11 deletions

View File

@@ -1,7 +1,4 @@
import packageInfo from '../../../package.json';
import {
model as UserNotification,
} from '../models/userNotification';
export default function responseHandler (req, res, next) {
// Only used for successful responses
@@ -16,7 +13,7 @@ export default function responseHandler (req, res, next) {
if (message) response.message = message;
if (user) {
response.notifications = UserNotification.convertNotificationsToSafeJson(user.notifications);
response.notifications = user.notifications;
response.userV = user._v;
}