fix missing first words in wishlist items
This commit is contained in:
parent
abb50cf152
commit
430411163d
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ module.exports = (db) => {
|
||||||
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;
|
item.note = req.body.note;
|
||||||
if (url) item.url = url;
|
if (url) item.url = url;
|
||||||
if (!url) item.name = potentialUrl
|
if (!url) item.name = req.body.itemUrlOrName
|
||||||
item.id = uuid();
|
item.id = uuid();
|
||||||
const doc = await db.get(req.params.user);
|
const doc = await db.get(req.params.user);
|
||||||
doc.wishlist.push(item);
|
doc.wishlist.push(item);
|
||||||
|
|
Loading…
Reference in a new issue