From a6ba5a893875af75f507b0e1c8657eeb5fc5ccb7 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Mon, 28 Nov 2022 11:06:44 +0100 Subject: [PATCH] fix ingredients Took 4 minutes --- .gitignore | 3 ++- src/iTender.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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;