Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/controller/cve.controller/cve.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async function getFilteredCves (req, res, next) {
logger.info({ uuid: req.ctx.uuid, message: 'The cve records count was sent to the user.' })
return res.status(200).json(payload) // only return count number, not the records
}

options.readPreference = 'primary'
const pg = await cveRepo.aggregatePaginate(agt, options)
const payload = {
cveRecords: pg.itemsList.map(val => { return val.cve })
Expand Down
Loading