Skip to content

Commit

Permalink
Update db_level.js
Browse files Browse the repository at this point in the history
  • Loading branch information
R00tS3c authored Oct 17, 2019
1 parent 90c0fd5 commit 7657128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socketserver/db_level.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ LevelDB.prototype.getConversations = function (uid, callback) {
this.PmDB.createReadStream()
.on('data', function (data) {
data.key = data.key.toString();
if (data.key.indexOf(':') == -1 || (uids = data.key.split(':') + "").indexOf(uid) == -1) return;
if (data.key.indexOf(':') == -1 || (uids = data.key.split(':')).indexOf(uid) == -1) return;

try {
var convo = JSON.parse(data.value);
Expand Down

0 comments on commit 7657128

Please sign in to comment.