Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let filter = {};
- if (selectedCandidate != "") {
- filter.put('candidate', selectedCandidate);
- }
- if (selectedEmployer != "") {
- filter.put('employer.id', selectedEmployer);
- }
- if (selectedStatus != "") {
- filter.put('status', selectedStatus);
- }
- if (startDate != "") {
- filter.put('created_at', {
- '$gte': new Date(startDate),
- '$lte': new Date(endDate),
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement