Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔖 연관된 이슈
📂 작업 내용
websocket
에서 감지 ->backend
로 api 요청 보내는 방식으로 수정why?
typeorm의 findOneBy 메서드는 기본적으로 관계(entity relationship)를 자동으로 가져오지 않습니다. 이 메서드는 지정된 조건에 해당하는 필드만 조회하며, 관계 필드나 다른 테이블의 데이터는 포함되지 않습니다. 이를 해결하려면 findOne 메서드와 함께 relations 옵션을 사용해야 합니다. relations를 설정하면 원하는 관계 데이터를 명시적으로 포함시킬 수 있습니다.
findOneBy:
findOne:
📑 참고 자료 & 스크린샷 (선택)
📢 리뷰 요구사항 (선택)