Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
chore(available): filtering on whats available
Browse files Browse the repository at this point in the history
  • Loading branch information
David Balan committed May 19, 2021
1 parent 3c423d9 commit 3feb2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function main() {
const profiles = require('./profiles.json');
const uniqCenters = [...new Set(profiles.map(({ places }) => places).flat())];
const availability = await getAvailabilityMap(uniqCenters, typeFilter);
const slots = availability;//.filter(({ available }) => available > 0);
const slots = availability.filter(({ available }) => available > 0);
if(slots.length) {
console.table(slots);
console.info('Notifying according to profiles');
Expand Down

0 comments on commit 3feb2e4

Please sign in to comment.