Support multi-page PDFs for more than 3 selected checks
- pdfService: batch checks into groups of 3, add doc.addPage() between groups - pdf route: remove 1-3 limit, accept any number of check IDs - Frontend: remove 3-check selection cap; any number of checks can be selected
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ const { generateCheckPdf } = require('../services/pdfService');
|
||||
router.post('/', async (req, res) => {
|
||||
const { checkIds } = req.body;
|
||||
|
||||
if (!Array.isArray(checkIds) || checkIds.length === 0 || checkIds.length > 3) {
|
||||
return res.status(400).json({ error: 'checkIds must be an array of 1–3 IDs' });
|
||||
if (!Array.isArray(checkIds) || checkIds.length === 0) {
|
||||
return res.status(400).json({ error: 'checkIds must be a non-empty array' });
|
||||
}
|
||||
|
||||
// Fetch account
|
||||
|
||||
Reference in New Issue
Block a user