Spaceface16518 / strat-collector

Combs through a specific subreddit for posts with over a certain threshold in comments. It then adds them to a database.
MIT License
2 stars 0 forks source link

Find all function won't work #17

Closed Spaceface16518 closed 6 years ago

Spaceface16518 commented 6 years ago

The function at the end of app.ts won't work.

Details

This is probably because findAll is a function, and functions need function syntax. While testing, errors complaining of missing credentials. This probably means that no password was entered.

Code

This is how I would recommend correcting the code:

console.log(mongo.findall(cred.mongoPass))

Just pull the mongo password from the credential grabber.

Summary

The findAll function is missing its parameter mongoPass.