Skip to content

Commit

Permalink
explicitly pass the required secrets to the scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
pkage committed Oct 19, 2019
1 parent 151593b commit cd43c63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ const authenticationMiddleware = (req, res, next) => {
app.use(authenticationMiddleware)

const writeScrape = async () => {
const members = await scrape_members({orgID, groupID, auth: secrets})
const members = await scrape_members({
orgID,
groupID,
auth: {
email: secrets.email,
password: secrets.password
}
})

const out = {
members: members,
Expand Down

0 comments on commit cd43c63

Please sign in to comment.