chat-platform
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "chat-platform", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Universal Chat Platform", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -140,2 +140,10 @@ const _ = require('underscore'); | ||
}; | ||
// this is only to be used in testing to simplify the testing scenarios | ||
// there's no really need for an async func here | ||
this.getOrCreateContextSync = function(userId, statics) { | ||
if (isEmpty(userId)) { | ||
return null; | ||
} | ||
return new MemoryStore(userId, { ...statics }); | ||
}; | ||
@@ -142,0 +150,0 @@ this.mergeUserId = async function(fromUserId, toUserId) { |
1030444
3477