Skip to content

Commit

Permalink
SWIK-1684 changing id to _id
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaun committed Nov 14, 2017
1 parent c2a1967 commit 3f750b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ let self = module.exports = {
return notificationsDB.getAllFromCollection().then((notifications) => {
notifications.forEach((notification) => {
const query = {
_id: notification.id//oid(request.params.id)
_id: notification._id//oid(request.params.id)
//encodeURIComponent(request.params.id)
};
notificationsDB.partlyUpdate(query, {
$set: {
new: true
}
});
console.log('marked notification, notification.id=' + notification.id);
console.log('marked notification, notification.id=' + notification._id);
});
}).catch((error) => {
console.log('notifications service problem with recreation of notifications: ' + error);
Expand Down

0 comments on commit 3f750b7

Please sign in to comment.