소스 검색

Merge pull request #9852 from weseek/fix/164706-codeql-problems

fix: CodeQL problems
Yuki Takei 1 년 전
부모
커밋
feffeb9445
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/features/openai/server/routes/edit/index.ts

+ 1 - 1
apps/app/src/features/openai/server/routes/edit/index.ts

@@ -154,7 +154,7 @@ export const postMessageToEditHandlersFactory: PostMessageHandlersFactory = (cro
         return res.apiv3Err(new ErrorV3('GROWI AI is not enabled'), 501);
       }
 
-      const threadRelation = await ThreadRelationModel.findOne({ threadId });
+      const threadRelation = await ThreadRelationModel.findOne({ threadId: { $eq: threadId } });
       if (threadRelation == null) {
         return res.apiv3Err(new ErrorV3('ThreadRelation not found'), 404);
       }