fix ingredients
Took 4 minutes
This commit is contained in:
parent
35ddbe3662
commit
a6ba5a8938
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/dist/
|
/dist/
|
||||||
/.idea/
|
/.idea/
|
||||||
/node_modules
|
/node_modules
|
||||||
/public/images/
|
/public/images/
|
||||||
|
/config.json
|
@ -237,7 +237,7 @@ export class iTender {
|
|||||||
|
|
||||||
let drinkAccept = true;
|
let drinkAccept = true;
|
||||||
for (let i of d.ingredients) {
|
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) {
|
if (!c || c.content != i.type) {
|
||||||
drinkAccept = false;
|
drinkAccept = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user