mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix lint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user