Fix adding note with item
This commit is contained in:
parent
91614ca46b
commit
24ecd1be28
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ module.exports = (db) => {
|
||||||
item.name = (productData ? productData.name : req.body.itemUrlOrName);
|
item.name = (productData ? productData.name : req.body.itemUrlOrName);
|
||||||
item.addedBy = req.user._id;
|
item.addedBy = req.user._id;
|
||||||
item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id);
|
item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id);
|
||||||
|
item.note = req.body.note;
|
||||||
if (isUrl) item.url = potentialUrl;
|
if (isUrl) item.url = potentialUrl;
|
||||||
item.id = uuid();
|
item.id = uuid();
|
||||||
const doc = await db.get(req.params.user);
|
const doc = await db.get(req.params.user);
|
||||||
|
|
Loading…
Reference in a new issue