Skip to content

Commit

Permalink
fx job
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-py committed May 22, 2024
1 parent 13d387e commit e88475f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ exports.formJobApplicants = async (req, res) => {
external_applicants: 1
});

if (!null)
return res.status(400).json({ status: 'fail', message: 'Job not found' });
if (applicants === null)
return res.status(404).json({ status: 'fail', message: 'Job not found' });

return res.status(200).json({
status: 'success',
Expand Down

0 comments on commit e88475f

Please sign in to comment.