Skip to content

Commit 5329b81

Browse files
committed
sanitize notes
1 parent c3e8fca commit 5329b81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/copilotOpportunityApply/create.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ module.exports = [
2626
});
2727
return next(err);
2828
}
29-
// default values
30-
_.assign(data, {
29+
30+
const data = {
3131
userId: req.authUser.userId,
3232
createdBy: req.authUser.userId,
3333
updatedBy: req.authUser.userId,
3434
opportunityId: copilotOpportunityId,
3535
notes: notes ? req.sanitize(notes) : null,
36-
});
36+
};
3737

3838
console.log(data, 'debug data data');
3939

0 commit comments

Comments
 (0)