mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix linting for server (except for length of apidoc)
This commit is contained in:
@@ -43,7 +43,7 @@ api.readNotification = {
|
||||
// Update the user version field manually,
|
||||
// it cannot be updated in the pre update hook
|
||||
// See https://github.com/HabitRPG/habitica/pull/9321#issuecomment-354187666 for more info
|
||||
user._v++;
|
||||
user._v += 1;
|
||||
|
||||
await user.update({
|
||||
$pull: { notifications: { id: req.params.notificationId } },
|
||||
@@ -90,7 +90,7 @@ api.readNotifications = {
|
||||
// Update the user version field manually,
|
||||
// it cannot be updated in the pre update hook
|
||||
// See https://github.com/HabitRPG/habitica/pull/9321#issuecomment-354187666 for more info
|
||||
user._v++;
|
||||
user._v += 1;
|
||||
|
||||
res.respond(200, UserNotification.convertNotificationsToSafeJson(user.notifications));
|
||||
},
|
||||
@@ -140,7 +140,7 @@ api.seeNotification = {
|
||||
// Update the user version field manually,
|
||||
// it cannot be updated in the pre update hook
|
||||
// See https://github.com/HabitRPG/habitica/pull/9321#issuecomment-354187666 for more info
|
||||
user._v++;
|
||||
user._v += 1;
|
||||
|
||||
res.respond(200, notification);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user