Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix export count (#7)

authored by

kPherox and committed by
GitHub
e4693b74 750845b4

+1 -1
+1 -1
packages/server/src/routes.ts
··· 20 20 21 21 // Export ops in the form of paginated json lines 22 22 router.get('/export', async function (req, res) { 23 - const parsedCount = req.count ? parseInt(req.count, 10) : 1000 23 + const parsedCount = req.query.count ? parseInt(req.query.count, 10) : 1000 24 24 if (isNaN(parsedCount) || parsedCount < 1) { 25 25 throw new ServerError(400, 'Invalid count parameter') 26 26 }