init
This commit is contained in:
@@ -40,7 +40,7 @@ router.post('/upload', (req, res: Response) => {
|
||||
|
||||
router.get('/', (req, res: Response) => {
|
||||
const page = Math.max(1, parseInt(req.query.page as string) || 1);
|
||||
const limit = Math.min(100, Math.max(1, parseInt(req.query.limit as string) || 20));
|
||||
const limit = Math.min(999999, Math.max(1, parseInt(req.query.limit as string) || 20));
|
||||
const offset = (page - 1) * limit;
|
||||
|
||||
let where = 'WHERE 1=1';
|
||||
|
||||
Reference in New Issue
Block a user