Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

상품 가격 조회 오류 수정 #242

Merged
merged 1 commit into from
Jan 13, 2024
Merged

상품 가격 조회 오류 수정 #242

merged 1 commit into from
Jan 13, 2024

Conversation

Muungi
Copy link
Collaborator

@Muungi Muungi commented Jan 11, 2024

진행 내용

  • 상품 가격을 조회할 때, 기간 내 상품 가격이 없으면 발생하는 오류 수정

  • Mongo에서 상품 가격을 조회할 때 일정 기간 내의 상품 가격을 조회하는데, 이 때 해당 기간 내에 부합하는 데이터가 없는 경우 서버 내부 로직에서 에러가 발생하였습니다.

  • 따라서 해당 상품이 기간 내에 데이터가 없을 경우, 가장 최근 데이터를 다시 조회하도록 수정하였습니다.

스크린샷 (선택)

  • 사용자가 추적 중인 상품을 조회하였을 때, 특정 상품의 30일 내의 데이터가 Mongo에 존재하지 않아 조회 결과가 빈 배열이 반환되고 이후 서버 내부 로직 상에서 price 정보를 가져오려고 하니 에러가 발생한 로그 입니다.
    가격 조회 오류

@Muungi Muungi added bug 버그 수정 backend 백엔드 관련 labels Jan 11, 2024
@Muungi Muungi requested a review from sickbirdd January 11, 2024 15:36
@Muungi Muungi self-assigned this Jan 11, 2024
Copy link
Collaborator

@sickbirdd sickbirdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sickbirdd sickbirdd merged commit 3e2dca1 into dev/be Jan 13, 2024
1 check passed
@Taewan-P Taewan-P deleted the fix/be/productPrice branch May 21, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend 백엔드 관련 bug 버그 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants