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

fix export count (#7)

kPherox e4693b74 750845b4

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