mirror of https://github.com/xfarrow/blink
Update job_offer_routes.js
This commit is contained in:
parent
9cd0ba795d
commit
06a548eb55
|
@ -27,8 +27,6 @@ async function insert(req, res) {
|
||||||
req.body.salary_frequency,
|
req.body.salary_frequency,
|
||||||
req.body.location);
|
req.body.location);
|
||||||
|
|
||||||
console.log(insertedJobOffer);
|
|
||||||
|
|
||||||
if (insertedJobOffer) {
|
if (insertedJobOffer) {
|
||||||
res.set('Location', `/api/joboffers/${insertedJobOffer.id}`);
|
res.set('Location', `/api/joboffers/${insertedJobOffer.id}`);
|
||||||
return res.status(201).json(insertedJobOffer);
|
return res.status(201).json(insertedJobOffer);
|
||||||
|
|
Loading…
Reference in New Issue