Remove conflicting blocks

This commit is contained in:
2024-05-17 21:41:11 -04:00
parent c3ee739366
commit 369bbc4960
2 changed files with 10 additions and 46 deletions

View File

@@ -135,21 +135,6 @@ export const useScheduleStore = defineStore('schedule', () => {
console.error('Failed to fetch timeblock templates', error);
}
}
// const getConflicts = (timeblock: Interval, boat: Boat) => {
// const start = date.buildDate({
// hour: timeblock.start.hour,
// minute: timeblock.start.minute,
// second: 0,
// millisecond: 0,
// });
// const end = date.buildDate({
// hour: timeblock.end.hour,
// minute: timeblock.end.minute,
// second: 0,
// millisecond: 0,
// });
// return scheduleStore.getConflictingReservations(boat, start, end);
// };
const createInterval = async (interval: Interval) => {
try {