fix ingredients
Took 4 minutes
This commit is contained in:
parent
35ddbe3662
commit
a6ba5a8938
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
/.idea/
|
||||
/node_modules
|
||||
/public/images/
|
||||
/config.json
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user