diff --git a/controllers/recruit/deleteComment.ts b/controllers/recruit/deleteComment.ts index 71a4ad3..4822774 100644 --- a/controllers/recruit/deleteComment.ts +++ b/controllers/recruit/deleteComment.ts @@ -12,7 +12,7 @@ const deleteComment = async (req: Request, res: Response) => { let boardInfo; try { boardInfo = await getRepository(Recruits).findOne({ - relations: ['writer'], + relations: ['writer', 'stacks'], where: { id: boardId, }, diff --git a/controllers/recruit/registerComment.ts b/controllers/recruit/registerComment.ts index 96faacc..8450671 100644 --- a/controllers/recruit/registerComment.ts +++ b/controllers/recruit/registerComment.ts @@ -18,7 +18,7 @@ const registerComment = async (req: Request, res: Response) => { }); if (foundUser) { const foundBoard = await getRepository(Recruits).findOne({ - relations: ['writer'], + relations: ['writer', 'stacks'], where: { id: boardId, },