diff --git a/imports/models/RocketChatCollection.ts b/imports/models/RocketChatCollection.ts index 0932a5f..bfde204 100644 --- a/imports/models/RocketChatCollection.ts +++ b/imports/models/RocketChatCollection.ts @@ -43,7 +43,7 @@ export class RocketChatCollectionClass extends BaseCollection { - const document = await this.collection.findOneAsync({ _id: boardname }) + const document = await this.collection.findOneAsync({ _id: boardname, userId: userId, username: username }) console.log('Document', document) return document as RocketChatUserRecord } @@ -52,6 +52,7 @@ export class RocketChatCollectionClass extends BaseCollection