@@ -83,7 +83,7 @@ export const getMessagesFactory = (crowi: Crowi): RequestHandler[] => {
}
const threadRelation = await ThreadRelationModel.findOne({
- threadId,
+ threadId: { $eq: threadId },
userId: user._id,
});
if (threadRelation == null) {
@@ -129,7 +129,7 @@ export const postMessageHandlersFactory = (crowi: Crowi): RequestHandler[] => {