From b24f2c2d246c02d2bc983d48054cb5441f91d539 Mon Sep 17 00:00:00 2001 From: Anoushka Gupta Date: Sun, 5 Jan 2025 21:30:39 -0800 Subject: [PATCH] add joblink --- src/controllers/jobsController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/jobsController.js b/src/controllers/jobsController.js index 19570f7ac..6ffbf41eb 100644 --- a/src/controllers/jobsController.js +++ b/src/controllers/jobsController.js @@ -62,7 +62,7 @@ const getJobSummaries = async (req, res) => { // Fetch the total number of jobs matching the query for pagination const totalJobs = await Job.countDocuments(query); const jobs = await Job.find(query) - .select('title category location description datePosted featured jobDetailsLink') + .select('title category location description datePosted featured jobDetailsLink') // add jobDetailsLink .sort(sortCriteria) .skip((pageNumber - 1) * limitNumber) .limit(limitNumber);