diff --git a/src/goods/goods.service.ts b/src/goods/goods.service.ts index 7a129f6..54efdc6 100644 --- a/src/goods/goods.service.ts +++ b/src/goods/goods.service.ts @@ -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('사용자를 찾을 수 없습니다.');