Skip to content

Commit

Permalink
fix controller order
Browse files Browse the repository at this point in the history
  • Loading branch information
Anoushka21 committed Jan 6, 2025
1 parent b0641f5 commit 9251da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/jobsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
.select('title category location description datePosted featured jobDetailsLink')
.sort(sortCriteria)
.skip((pageNumber - 1) * limitNumber)
.limit(limitNumber);
Expand Down

0 comments on commit 9251da3

Please sign in to comment.