diff --git a/src/services/bookingService/existingBookingService.ts b/src/services/bookingService/existingBookingService.ts index f28fe87..1f1eb7a 100644 --- a/src/services/bookingService/existingBookingService.ts +++ b/src/services/bookingService/existingBookingService.ts @@ -115,7 +115,7 @@ export class ExistingBookingService extends BookingService { const $ = cheerio.load(await res.text()); logger.debug(`Checking week of: ${getShortDate(date)}`); - const freeSlots = $(".timecell").not(".selected").children("script"); + const freeSlots = $(".timecell").not(".selected").children("button"); const bookedSlots = $(".timecell label"); return [freeSlots, bookedSlots]; diff --git a/src/services/bookingService/newBookingService.ts b/src/services/bookingService/newBookingService.ts index 354fd38..3986425 100644 --- a/src/services/bookingService/newBookingService.ts +++ b/src/services/bookingService/newBookingService.ts @@ -136,7 +136,7 @@ export class NewBookingService extends BookingService { const $ = cheerio.load(await res.text()); logger.debug(`Checking week of: ${getShortDate(date)}`); - const freeSlots = $(".timecell script"); + const freeSlots = $(".timecell button"); const bookedSlots = $(".timecell label"); return [freeSlots, bookedSlots];