Skip to content

Commit

Permalink
fixup! fix: send date as sting instead of epoch
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Nov 28, 2024
1 parent 11f45cc commit c1ddd3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/Appointments/Booking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ import AppointmentSlot from '../../components/Appointments/AppointmentSlot.vue'
import { bookSlot, findSlots } from '../../services/appointmentService.js'
import AppointmentDetails from '../../components/Appointments/AppointmentDetails.vue'
import AppointmentBookingConfirmation from '../../components/Appointments/AppointmentBookingConfirmation.vue'
import { getYYYYMMDDFromDate } from '../../utils/date.js'

Check failure on line 90 in src/views/Appointments/Booking.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'getYYYYMMDDFromDate' is defined but never used

const Loading = {
functional: true,
Expand Down Expand Up @@ -188,9 +189,9 @@ export default {
this.slots = []
this.loadingSlots = true

const selectedDay = this.selectedDate.getFullYear().toString() + '-' +
(this.selectedDate.getMonth() + 1).toString() + '-' +
this.selectedDate.getDate().toString()
const selectedDay = this.selectedDate.getFullYear().toString() + '-'
+ (this.selectedDate.getMonth() + 1).toString() + '-'
+ this.selectedDate.getDate().toString()

try {
this.slots = await findSlots(
Expand Down

0 comments on commit c1ddd3f

Please sign in to comment.