reverse
This commit is contained in:
parent
0399861ee7
commit
e3f607b4f9
|
|
@ -652,7 +652,7 @@ public class MongoRepository : IBotSharpRepository
|
|||
public List<Conversation> GetConversations(string userId)
|
||||
{
|
||||
var records = new List<Conversation>();
|
||||
if (string.IsNullOrEmpty(userId) || Guid.TryParse(userId, out var _)) return records;
|
||||
if (string.IsNullOrEmpty(userId) || !Guid.TryParse(userId, out var _)) return records;
|
||||
|
||||
var filterByUserId = Builders<ConversationCollection>.Filter.Eq(x => x.UserId, Guid.Parse(userId));
|
||||
var conversations = _dc.Conversations.Find(filterByUserId).ToList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue