Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Aug 28, 2024
1 parent 08e72a1 commit 22a9c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/components/institute/institute.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ async function getSchoolByMincode(req, res) {
async function getStudentRegistrationContacts(req, res) {
let contactsList = [];
try {
var schoolSearchCriteria = encodeURIComponent(`{"condition":"AND","searchCriteriaList":[{"key":"expiryDate","operation":"gte","value":"${LocalDateTime.now()}","valueType":"DATE_TIME","condition":"OR"},{"key":"expiryDate","operation":"eq","value":null,"valueType":"STRING","condition":"OR"}]}, {"condition":"AND","searchCriteriaList":[{"key":"schoolContactTypeCode","operation":"eq","value":"STUDREGIS","valueType":"STRING","condition":"OR"}]}`);
var districtSearchCriteria = encodeURIComponent(`{"condition":"AND","searchCriteriaList":[{"key":"expiryDate","operation":"gte","value":"${LocalDateTime.now()}","valueType":"DATE_TIME","condition":"OR"},{"key":"expiryDate","operation":"eq","value":null,"valueType":"STRING","condition":"OR"}]}, {"condition":"AND","searchCriteriaList":[{"key":"districtContactTypeCode","operation":"eq","value":"STUDREGIS","valueType":"STRING","condition":"OR"}]}`);
let schoolSearchCriteria = encodeURIComponent(`{"condition":"AND","searchCriteriaList":[{"key":"expiryDate","operation":"gte","value":"${LocalDateTime.now()}","valueType":"DATE_TIME","condition":"OR"},{"key":"expiryDate","operation":"eq","value":null,"valueType":"STRING","condition":"OR"}]}, {"condition":"AND","searchCriteriaList":[{"key":"schoolContactTypeCode","operation":"eq","value":"STUDREGIS","valueType":"STRING","condition":"OR"}]}`);
let districtSearchCriteria = encodeURIComponent(`{"condition":"AND","searchCriteriaList":[{"key":"expiryDate","operation":"gte","value":"${LocalDateTime.now()}","valueType":"DATE_TIME","condition":"OR"},{"key":"expiryDate","operation":"eq","value":null,"valueType":"STRING","condition":"OR"}]}, {"condition":"AND","searchCriteriaList":[{"key":"districtContactTypeCode","operation":"eq","value":"STUDREGIS","valueType":"STRING","condition":"OR"}]}`);
const schoolContactURL = `${config.get('server:institute:instituteSchoolURL')}/contact/paginated?pageNumber=0&pageSize=10000&searchCriteriaList=[${schoolSearchCriteria}]`;
const districtContactURL = `${config.get('server:institute:instituteDistrictURL')}/contact/paginated?pageNumber=0&pageSize=10000&searchCriteriaList=[${districtSearchCriteria}]`;
Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion backend/src/routes/sdc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22a9c20

Please sign in to comment.