Skip to content

Commit

Permalink
feat(xml_fixer): Fix xmlFinder query issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Aug 24, 2023
1 parent a96f0cf commit 2912753
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resfulservice/src/graphql/resolver/xml/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ const xmlFinderQuery = {
xmlFinder: async (_, { input }, { req }) => {
req.logger?.info('[xmlFinder] Function Entry');
try {
const { filter: { status, param, isNewCuration, curationState, user } } = input;
const status = input?.filter?.status;
const param = input?.filter?.param;
const isNewCuration = input?.filter?.isNewCuration;
const curationState = input?.filter?.curationState;
const user = input?.filter?.user;
const xmlDataFilter = param ? { title: { $regex: new RegExp(param.toString(), 'gi') } } : {};
const curationSampleFilter = param ? { 'object.DATA_SOURCE.Citation.CommonFields.Title': { $regex: new RegExp(param.toString(), 'gi') } } : {};

Expand Down

0 comments on commit 2912753

Please sign in to comment.