Skip to content

Commit

Permalink
Merge pull request #33 from arienshibani/chore/script-error-msg
Browse files Browse the repository at this point in the history
chore(scripts/price-scanner.js): let us know if any of the API keys a…
  • Loading branch information
arienshibani authored Feb 21, 2024
2 parents 5ed8c51 + 3c88535 commit b1529dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/price-scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ const mongoUri = process.env.MONGO_URI;
let cachedDb = null;


if(apiKey === undefined){
console.error('KASSALAPP_API_KEY is missing');
process.exit(1);

}

if(mongoUri === undefined){
console.error('MONGO_URI is missing');
process.exit(1);
}

// Fetch list of all ingredients from MongoDB
const fetchListOfIngredientsFromMongoDB = async () => {
const client = new MongoClient(mongoUri);
Expand Down

0 comments on commit b1529dc

Please sign in to comment.