From c977921f02308af769af37f6b7d37b21869797f2 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 5 Dec 2023 10:53:52 +0700
Subject: Add externalId on import and export

---
 src/app/api/stock-opname/route.tsx | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

(limited to 'src/app/api/stock-opname/route.tsx')

diff --git a/src/app/api/stock-opname/route.tsx b/src/app/api/stock-opname/route.tsx
index e98c3b2..cba16e2 100644
--- a/src/app/api/stock-opname/route.tsx
+++ b/src/app/api/stock-opname/route.tsx
@@ -40,16 +40,7 @@ export async function GET(request: NextRequest) {
   const products = await prisma.product.findMany({
     skip: (intPage - 1) * PAGE_SIZE,
     take: PAGE_SIZE,
-    where,
-    select: {
-      id: true,
-      name: true,
-      itemCode: true,
-      barcode: true,
-      onhandQty: true,
-      differenceQty: true,
-      isDifferent: true
-    }
+    where
   })
 
   const productCount = await prisma.product.count({ where })
-- 
cgit v1.2.3

