Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md & slot.slots not iterable fix #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://support.google.com/accounts/answer/185833?p=InvalidSecondFactor&visit_id
Step 2) Enter the details in the file .env, present in the same folder
\
\
Step 3) On your terminal run: npm i && pm2 start vaccineNotifier.js
Step 3) On your terminal run: npm i,npm i -g pm2 && pm2 start vaccineNotifier.js
\
\
To close the app run: pm2 stop vaccineNotifier.js && pm2 delete vaccineNotifier.js
Expand Down
7 changes: 4 additions & 3 deletions vaccineNotifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function getSlotsForDate(DATE) {
async function

notifyMe(validSlots, date){
let slotDetails = JSON.stringify(validSlots, null, '\t');
notifier.sendEmail(EMAIL, 'VACCINE AVAILABLE', slotDetails, date, (err, result) => {
// let slotDetails = JSON.stringify(validSlots, null, '\t');
notifier.sendEmail(EMAIL, 'VACCINE AVAILABLE', validSlots, date, (err, result) => {
if(err) {
console.error({err});
}
Expand All @@ -85,4 +85,5 @@ async function fetchNext10Days(){


main()
.then(() => {console.log('Vaccine availability checker started.');});
.then(() => {console.log('Vaccine availability checker started.')})
.catch((err) => {console.log(err)});