Image support

This commit is contained in:
Wingy 2020-11-02 17:43:57 -05:00
parent b62ac06bd1
commit 96588d0690
3 changed files with 22 additions and 6 deletions

View file

@ -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}`)