fix missing first words in wishlist items

This commit is contained in:
Wingy 2020-10-29 23:53:43 -04:00
parent abb50cf152
commit 430411163d

View file

@ -84,7 +84,7 @@ module.exports = (db) => {
item.pledgedBy = (req.user._id === req.params.user ? undefined : req.user._id);
item.note = req.body.note;
if (url) item.url = url;
if (!url) item.name = potentialUrl
if (!url) item.name = req.body.itemUrlOrName
item.id = uuid();
const doc = await db.get(req.params.user);
doc.wishlist.push(item);