mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Fix issues with Bootstrap Vue and Boostrap upgrades (#9452)
* start to fix modals * fixed cards paddings * fix notifications not being marked as read * add tests for reading a notification * fixed indentation and added tests for reading multiple notifications * register from home page using enter key
This commit is contained in:
@@ -39,7 +39,7 @@ api.readNotification = {
|
||||
user.notifications.splice(index, 1);
|
||||
|
||||
await user.update({
|
||||
$pull: { notifications: req.params.notificationId },
|
||||
$pull: { notifications: { id: req.params.notificationId } },
|
||||
}).exec();
|
||||
|
||||
res.respond(200, user.notifications);
|
||||
@@ -81,7 +81,7 @@ api.readNotifications = {
|
||||
}
|
||||
|
||||
await user.update({
|
||||
$pullAll: { notifications },
|
||||
$pull: { notifications: { id: { $in: notifications } } },
|
||||
}).exec();
|
||||
|
||||
res.respond(200, user.notifications);
|
||||
|
||||
Reference in New Issue
Block a user