Skip to content

Commit

Permalink
Simplify parameter gathering
Browse files Browse the repository at this point in the history
  • Loading branch information
lmd59 committed Aug 5, 2024
1 parent 68b892a commit dd61375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/export.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const bulkExport = async (request, reply) => {
request.log.info('Base >>> $export');
const clientEntry = await addPendingBulkExportRequest();

const types = request.query._type?.split(',') || parameters._type?.split(','); //TODO, does gatherParams not pull from the query as well? Why is this OR required?
const types = parameters._type?.split(',');

const elements = request.query._elements?.split(',') || parameters._elements?.split(',');
const elements = parameters._elements?.split(',');

// Enqueue a new job into Redis for handling
const job = {
Expand Down

0 comments on commit dd61375

Please sign in to comment.