From dd61375d428efa960d733e8a1d2d867e9ffd3281 Mon Sep 17 00:00:00 2001 From: LaurenD Date: Mon, 5 Aug 2024 10:21:33 -0400 Subject: [PATCH] Simplify parameter gathering --- src/services/export.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/export.service.js b/src/services/export.service.js index ae606db..2072fcb 100644 --- a/src/services/export.service.js +++ b/src/services/export.service.js @@ -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 = {