sessionstore
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -134,3 +134,3 @@ 'use strict'; | ||
function requestClb(err, session_data) { | ||
this.sessions.findOne({ _sessionid: sid }, function (err, session_data) { | ||
if (err) { | ||
@@ -154,11 +154,3 @@ if (callback) callback(err); | ||
} | ||
} | ||
var query = { _sessionid: sid }; | ||
if (sess._id) { | ||
query = { _id: sess._id }; | ||
} | ||
this.sessions.findOne(query, requestClb); | ||
}); | ||
}, | ||
@@ -165,0 +157,0 @@ |
@@ -90,3 +90,3 @@ 'use strict'; | ||
function requestClb(err, session_data) { | ||
this.sessions.findOne({ _sessionid: sid }, function (err, session_data) { | ||
if (err) { | ||
@@ -110,10 +110,3 @@ if (callback) callback(err); | ||
} | ||
} | ||
if (sess._id) { | ||
this.sessions.get(sess._id, requestClb); | ||
return; | ||
} | ||
this.sessions.findOne({ _sessionid: sid }, requestClb); | ||
}); | ||
}, | ||
@@ -120,0 +113,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "sessionstore", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
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
44351
24
769