automatic image/price
This commit is contained in:
parent
c71d654847
commit
fdc3c814d0
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ module.exports = (db) => {
|
|||
req.flash('error', err.toString());
|
||||
}
|
||||
item.name = (productData ? productData.name : '');
|
||||
item.price = productData?.price
|
||||
item.image = productData?.image
|
||||
item.addedBy = req.user._id;
|
||||
item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id);
|
||||
item.note = req.body.note;
|
||||
|
|
Loading…
Reference in a new issue