fix ingredients

Took 4 minutes
This commit is contained in:
Tobias Hopp 2022-11-28 11:06:44 +01:00
parent 35ddbe3662
commit a6ba5a8938
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/.idea/
/node_modules
/public/images/
/config.json

View File

@ -237,7 +237,7 @@ export class iTender {
let drinkAccept = true;
for (let i of d.ingredients) {
let c = await Container.findOne({$and: [{content: i.type}, {content: {$ne: null}}]});
let c = await Container.findOne({content: i.type});
if (!c || c.content != i.type) {
drinkAccept = false;