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:
Matteo Pagliazzi
2017-11-09 19:37:47 +01:00
committed by GitHub
parent 0d2737572d
commit 03a09b7546
10 changed files with 114 additions and 18 deletions

View File

@@ -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);