diff --git a/src/controllers/job.controller.ts b/src/controllers/job.controller.ts index 1ac2343..a843f11 100644 --- a/src/controllers/job.controller.ts +++ b/src/controllers/job.controller.ts @@ -4,7 +4,7 @@ import { jobService } from '../services'; export const createJob = async (req: Request, res: Response): Promise => { try { const job = await jobService.addJobs(req.body); - res.send(job.id); + res.send({jobId: job.id}); } catch (err) { console.error(err); }