fixing bug with checking one on ones
This commit is contained in:
@@ -48,6 +48,7 @@ export default class ConversationService {
|
|||||||
static async getConversationBetweenTwoPeople(userAId: ObjectId, userBId: ObjectId) {
|
static async getConversationBetweenTwoPeople(userAId: ObjectId, userBId: ObjectId) {
|
||||||
const query = {
|
const query = {
|
||||||
$and: [
|
$and: [
|
||||||
|
{ members: { $size: 2 } },
|
||||||
{
|
{
|
||||||
'members._id': userAId,
|
'members._id': userAId,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user