-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BE] 즐겨찾기, 마이페이지 API 수정 #201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
@@ -106,7 +107,7 @@ export class AssetService { | |||
private async updateMyAsset(asset: Asset, currPrices) { | |||
const userId = asset.user_id; | |||
const userStocks = await this.userStockRepository.find({ | |||
where: { user_id: userId }, | |||
where: { user_id: userId, quantity: MoreThan(0) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢 여기 근데 보유량이 0인 경우는 뭔가요??
예를 들어 삼성전자 20주 구매했는데 20주 전부 매도하면 보유량이 0이 되는건가요?
만약에 그런거라면, 하루에 한번씩 장 마감 됐을 때 저런 거 delete 하는 로직도 추가되면 좋을 거 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
맞습니당! 그 로직도 추가하면 좋을 것 같네요ㅎㅎ
✅ 주요 작업