src/pages/Scheduling/utils.ts
Showing 2 of 2 total issues
Function computeAppointmentSlots
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function computeAppointmentSlots( availability: ScheduleAvailability & { slot_type: "appointment" }, exceptions: ScheduleException[], referenceDate: Date = new Date(),) {
- Create a ticketCreate a ticket
Function computeAppointmentSlots
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
export function computeAppointmentSlots( availability: ScheduleAvailability & { slot_type: "appointment" }, exceptions: ScheduleException[], referenceDate: Date = new Date(),) {
- Read upRead up
- Create a ticketCreate a ticket