From 82d87b70265966d175451f6e776799b535623fd5 Mon Sep 17 00:00:00 2001 From: Zikriya Date: Wed, 1 Feb 2023 22:07:58 +0500 Subject: [PATCH] api createJobBySwapHash response have been modified --- src/controllers/job.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }