Skip to content

Commit

Permalink
Fix syntax errors in websocket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Cunningham committed Nov 21, 2018
1 parent 48586ce commit c945c2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/server/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ function init (env, ctx, server) {
return;
}

var objId = new ObjectID(data._id);
ctx.store.collection(collection).update(
var objId = new ObjectID(data._id);
{ '_id': objId },
{ $unset: data.data }
);
Expand Down Expand Up @@ -326,8 +326,8 @@ function init (env, ctx, server) {
if (err || array.length > 0) {
console.log(LOG_DEDUP + 'Found similiar', array[0]);
array[0].created_at = data.data.created_at;
var objId = new ObjectID(array[0]._id);
ctx.store.collection(collection).update(
var objId = new ObjectID(array[0]._id);
{ '_id': objId },
{ $set: {created_at: data.data.created_at} }
);
Expand Down Expand Up @@ -412,8 +412,8 @@ function init (env, ctx, server) {
return;
}

var objId = new ObjectID(data._id);
ctx.store.collection(collection).remove(
var objId = new ObjectID(data._id);
{ '_id': objId }
);

Expand Down

0 comments on commit c945c2e

Please sign in to comment.