Prevent binding attacks

This commit is contained in:
Berkeley Martinez
2015-10-29 16:46:26 -07:00
parent 2cb305cc2c
commit e1a398597d

View File

@ -15,6 +15,12 @@ export default function getJobServices(app) {
if (!job) {
return cb(new Error('job creation should get a job object'));
}
Object.assign(job, {
isPaid: false,
isApproved: false
});
Job.create(job, (err, savedJob) => {
cb(err, savedJob);
});