Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Search
- const searchObject = {
- location: req.body.location,
- }
- if (req.body.term) searchObject.term = req.body.term
- if (req.body.limit) searchObject.limit = req.body.limit
- if (req.body.offset) searchObject.offset = req.body.offset
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement