Skip to content

Commit a7f5de4

Browse files
committed
Remove logging of ES query
1 parent d5d7570 commit a7f5de4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/services/ChallengeService.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,11 @@ async function searchChallenges(currentUser, criteria) {
460460

461461
// Add '.keyword' to the end of the sort by prop for certain fields
462462
// (TOP-2364)
463-
if(sortByProp === "updatedBy" ||
464-
sortByProp === "createdBy" ||
465-
sortByProp === "name" ||
466-
sortByProp === "type" ||
467-
sortByProp === "status") {
463+
if(sortByProp == "updatedBy" ||
464+
sortByProp == "createdBy" ||
465+
sortByProp == "name" ||
466+
sortByProp == "type" ||
467+
sortByProp == "status") {
468468

469469
sortByProp = sortByProp + ".keyword";
470470
}
@@ -717,8 +717,6 @@ async function searchChallenges(currentUser, criteria) {
717717
},
718718
};
719719

720-
logger.info(`ES QUERY:${JSON.stringify(esQuery)}`);
721-
722720
// Search with constructed query
723721
let docs;
724722
try {

0 commit comments

Comments
 (0)