Prevent binding attacks
This commit is contained in:
@ -15,6 +15,12 @@ export default function getJobServices(app) {
|
|||||||
if (!job) {
|
if (!job) {
|
||||||
return cb(new Error('job creation should get a job object'));
|
return cb(new Error('job creation should get a job object'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object.assign(job, {
|
||||||
|
isPaid: false,
|
||||||
|
isApproved: false
|
||||||
|
});
|
||||||
|
|
||||||
Job.create(job, (err, savedJob) => {
|
Job.create(job, (err, savedJob) => {
|
||||||
cb(err, savedJob);
|
cb(err, savedJob);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user