From bb01aa8c2423b19247d9e3530ae1a3256d884861 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Thu, 23 Nov 2023 16:38:42 +0700
Subject: Update export data result

---
 src/app/api/stock-opname/route.tsx | 6 ------
 1 file changed, 6 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 0515238..ba54524 100644
--- a/src/app/api/stock-opname/route.tsx
+++ b/src/app/api/stock-opname/route.tsx
@@ -164,12 +164,6 @@ const computeIsDifferent = async ({
   const stockOpnamesFetch = await fetch(`${SELF_HOST}/api/stock-opname/location?${searchParams}`)
   const stockOpnames: StockOpnameLocationRes[] = await stockOpnamesFetch.json()
 
-  const count2Count = await prisma.stockOpname.count({
-    where: { companyId, productId, team: 'COUNT2' }
-  })
-
-  const isCount2Counted: boolean = count2Count > 0
-
   let isDifferent: boolean = false
 
   for (const opname of stockOpnames) {
-- 
cgit v1.2.3

