From 010039f73e7f1a31a15d44738e37cc17c196b544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=98=ED=98=84=28toma=5Fto=29?= <148212609+tomaho1756@users.noreply.github.com> Date: Sat, 30 Nov 2024 20:31:36 +0900 Subject: [PATCH] Feature :: Fix Purchase Goods --- src/goods/goods.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('사용자를 찾을 수 없습니다.');