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

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
neoPix authored May 17, 2021
1 parent 9b7d55d commit 2ee758c
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 @@ -75,7 +75,7 @@ async function getAvailableTomorrowForCenter(centerInfo, date) {
if (centerInfo.visitMotives.length === 0) {
return null;
}
const tomorrow = (date ? day(date) : day()).format('YYYY-MM-DD');
const tomorrow = (date ? day(date) : day().add(1, 'd')).format('YYYY-MM-DD');
const { data } = await axios.get(`https://partners.doctolib.fr/availabilities.json?start_date=${tomorrow}&visit_motive_ids=${centerInfo.visitMotives.map(({ id }) => id).join('-')}&agenda_ids=${centerInfo.agendas.map(({ id }) => id).join('-')}&insurance_sector=public&practice_ids=${centerInfo.agendas.map(({ place }) => place).join('-')}&destroy_temporary=true&limit=10`);

if (data.availabilities.length === 0) {
Expand Down

0 comments on commit 2ee758c

Please sign in to comment.