Comparing version 1.0.3 to 1.0.4
@@ -27,3 +27,5 @@ var q = require('q') | ||
Client.prototype.leave = function(channel) { | ||
this.db.collection('clients').update({ _id: this.id }, { $unset: { "channels." + channel.name: true }}); | ||
var doc = { $unset: { } }; | ||
doc.$unset["channels." + channel.name] = true; | ||
this.db.collection('clients').update({ _id: this.id }, doc); | ||
channel._close(); | ||
@@ -30,0 +32,0 @@ delete this.channels[name]; |
{ | ||
"name": "vubsub", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Pub/Sub for Node.js and MongoDB", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/vivocha/vubsub", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9327
180