Skip to content

Commit d1592db

Browse files
committed
Update projectController to include 'completed' status in recent projects query
1 parent 2ce2c7e commit d1592db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/controllers/projectController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports.getRecentProjects = async (req, res) => {
2121
console.log(`Cache miss for ${cacheKey}, fetching from DB`);
2222
const recentProjects = await Job.find({
2323
freelancer: userId,
24-
status: { $in: ["in-progress", "closed"] },
24+
status: { $in: ["in-progress", "closed", "completed"] },
2525
})
2626
.sort({ updatedAt: -1 })
2727
.limit(10);

0 commit comments

Comments
 (0)