Skip to content

Commit

Permalink
Feature :: Fix Purchase Goods
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaho1756 committed Nov 30, 2024
1 parent 5d5084b commit 010039f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goods/goods.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class GoodsService {
throw new NotFoundException('상품을 찾을 수 없습니다.');
}
const user = await this.userRepository.findOne({
where: { userId: userId },
where: { id: Number(userId) },
});
if (!user) {
throw new NotFoundException('사용자를 찾을 수 없습니다.');
Expand Down

0 comments on commit 010039f

Please sign in to comment.