From b5b999614dad2d58d85a663b4c29e0265a790c6b Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Thu, 15 Dec 2016 12:44:27 +0800
Subject: [PATCH] 暂停保存原始数据

---
 method.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/method.js b/method.js
index c53e226..af6b0f2 100644
--- a/method.js
+++ b/method.js
@@ -93,7 +93,7 @@
     this.updateDeviceLastUpdated(db, mac, function(data) {});
     
     db.collection("devices").find({ mac: mac }).limit(1).next(function(err, doc){
-        if (err) return;
+        if (err || doc == null) return;
         callback(doc);
     });
 };

--
Gitblit v1.8.0