Image support
This commit is contained in:
parent
b62ac06bd1
commit
96588d0690
3 changed files with 22 additions and 6 deletions
|
@ -206,7 +206,7 @@ module.exports = (db) => {
|
|||
return res.redirect(`/wishlist/${req.params.user}`);
|
||||
}
|
||||
for (const type of [
|
||||
'name', 'note', 'url', 'price'
|
||||
'name', 'note', 'url', 'price', 'image'
|
||||
]) {
|
||||
if (!req.body.hasOwnProperty(type)) {
|
||||
req.flash('error', `Missing property ${type}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue