Skip to content

Commit

Permalink
api createJobBySwapHash response have been modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikriya committed Feb 1, 2023
1 parent 7bd4d62 commit 82d87b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/job.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { jobService } from '../services';
export const createJob = async (req: Request, res: Response): Promise<any> => {
try {
const job = await jobService.addJobs(req.body);
res.send(job.id);
res.send({jobId: job.id});
} catch (err) {
console.error(err);
}
Expand Down

0 comments on commit 82d87b7

Please sign in to comment.