From 9cc7cd14280f7a40c36dd72bc3d4629e11458e77 Mon Sep 17 00:00:00 2001 From: kent Date: Sat, 13 Dec 2025 23:41:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ItemService=20newQuery()=EC=97=90=20item?= =?UTF-8?q?=5Ftype=20=ED=95=84=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 동적 테이블 라우팅에서 item_type 필터 누락 버그 수정 - 모든 item_type이 동일한 결과를 반환하던 문제 해결 - CRUD 테스트 완료 (index/show/store/update/destroy) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Services/ItemService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/ItemService.php b/app/Services/ItemService.php index 93e707d..471218d 100644 --- a/app/Services/ItemService.php +++ b/app/Services/ItemService.php @@ -74,7 +74,9 @@ private function newQuery(string $itemType) $info = $this->getModelInfoByItemType($itemType); $modelClass = $info['model']; - return $modelClass::query()->where('tenant_id', $this->tenantId()); + return $modelClass::query() + ->where('tenant_id', $this->tenantId()) + ->where('item_type', strtoupper($itemType)); } /**