Skip to content

Commit 801e818

Browse files
fix(OUT-3604): revert max product list limit
1 parent c23c13b commit 801e818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/api/quickbooks/product/product.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function getFlattenProducts(req: NextRequest) {
1010
const productService = new ProductService(user)
1111
const searchParams = req.nextUrl.searchParams
1212
const nextToken = searchParams.get('nextToken') || undefined
13-
const limit = Number(searchParams.get('limit')) || 1
13+
const limit = Number(searchParams.get('limit')) || MAX_PRODUCT_LIST_LIMIT
1414
const products = await productService.getFlattenProductList(limit, nextToken)
1515
return NextResponse.json(products)
1616
}

0 commit comments

Comments
 (0)