diff options
Diffstat (limited to 'src/app/api/stock-opname/route.tsx')
| -rw-r--r-- | src/app/api/stock-opname/route.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
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 }) |
