fix names not urls
This commit is contained in:
parent
0732a264a1
commit
763aa7c027
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +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
|
||||
item.id = uuid();
|
||||
const doc = await db.get(req.params.user);
|
||||
doc.wishlist.push(item);
|
||||
|
|
Loading…
Reference in a new issue