Skip to content

Commit

Permalink
Updates for removing school API.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Oct 20, 2023
1 parent 3459b26 commit 178f7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/institute/institute.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ async function getStudentRegistrationContactByMincode(req, res) {

let response = await getData(accessToken, config.get('server:institute:rootURL') + '/school/contact/paginated', schoolSearchParam);
let schoolRegistrationContact = {};
if(response && response.content && response.content[0]){
if(response?.content && response.content[0]){
let firstStudRegContact = response.content[0];
schoolRegistrationContact.name = (firstStudRegContact.firstName ? firstStudRegContact.firstName + ' ' + firstStudRegContact.lastName : firstStudRegContact.lastName).trim();
schoolRegistrationContact.email = firstStudRegContact.email;
Expand Down

0 comments on commit 178f7cb

Please sign in to comment.