Skip to content

Commit

Permalink
chore: program name like search added
Browse files Browse the repository at this point in the history
  • Loading branch information
manojSRawat committed Mar 23, 2023
1 parent c85904c commit 7783926
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/service/programService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,11 @@ async function programList(req, response) {
...dateFilterValue
}
};
} else if (key === 'name' && value) {
delete data.request.filters[key];
return {
[key]: {[Op.like]: `%${value}%`}
}
}
}));

Expand Down Expand Up @@ -3259,4 +3264,4 @@ module.exports.getConfigurationByKeyAPI = getConfigurationByKey;
module.exports.downloadProgramDetailsAPI = downloadProgramDetails
module.exports.generateApprovedContentReportAPI = generateApprovedContentReport
module.exports.publishContentAPI = publishContent
module.exports.programCountsByOrgAPI = getProgramCountsByOrg
module.exports.programCountsByOrgAPI = getProgramCountsByOrg

0 comments on commit 7783926

Please sign in to comment.