fix webp as image type

This commit is contained in:
les
2020-06-14 20:58:23 +02:00
parent c9c6d1dc8f
commit 2593c1891f
3 changed files with 10 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ const exportController = {
start_datetime: { [Op.gte]: yesterday },
...where
},
include: [{ model: Tag, ...where_tags }, { model: Place, attributes: ['name', 'id', 'address'] }]
include: [{ model: Tag, required: false, ...where_tags }, { model: Place, attributes: ['name', 'id', 'address'] }]
})
switch (type) {