diff --git a/.gitignore b/.gitignore index 82b4126..3a2a29a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /dist/ /.idea/ /node_modules -/public/images/ \ No newline at end of file +/public/images/ +/config.json \ No newline at end of file diff --git a/src/iTender.ts b/src/iTender.ts index af52182..d2e82db 100644 --- a/src/iTender.ts +++ b/src/iTender.ts @@ -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;