Skip to content

Commit

Permalink
fixed sse update stream for non $set updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikbeneke committed Sep 19, 2017
1 parent ec6032b commit ba97a56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/mongodb/sse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = function (mongodbOplogUrl, options) {
data = deserialize(chunk.o)
break
case 'u' :
data = dot.object(chunk.o.$set);
data = dot.object(chunk.o.$set || {});
if (!data.id && chunk.o2 && chunk.o2._id) {
data.id = chunk.o2._id
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hapi-harvester",
"version": "0.5.4",
"version": "0.5.5",
"description": "Harvester Hapi Plugin",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ba97a56

Please # to comment.