-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search functionality: Mentee : Katha 1065 #448
Search functionality: Mentee : Katha 1065 #448
Conversation
src/services/mentees.js
Outdated
let foundKeys = {} | ||
let result = [] | ||
// update count after filters | ||
userDetails.data.result.count = userDetails.data.result.data.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 count should be total data in the DB.
additionalProjectionString, | ||
false | ||
) | ||
if (organization_ids.length > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 add filters in query
src/services/mentees.js
Outdated
// update count after filters | ||
userDetails.data.result.count = userDetails.data.result.data.length | ||
|
||
for (let user of userDetails.data.result.data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 we don't require this i think
src/services/mentees.js
Outdated
} | ||
} | ||
|
||
const sortedData = _.sortBy(result, 'key') || [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 add sort in query
No description provided.