aedes-persistence-nedb
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "aedes-persistence-nedb", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "NeDB persistence for Aedes.", | ||
@@ -5,0 +5,0 @@ "main": "persistence.js", |
@@ -201,4 +201,8 @@ 'use strict'; | ||
self.outgoing.update(query, changes, { returnUpdatedDocs: true }, function (err, num, doc) { | ||
var pkt = transformPacket(doc.packet); | ||
return callback(err, client, pkt); | ||
if (doc) { | ||
var pkt = transformPacket(doc.packet); | ||
return callback(err, client, pkt); | ||
} else { | ||
return callback(err, client, {}); | ||
} | ||
}); | ||
@@ -205,0 +209,0 @@ }; |
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
42872
1136