Skip to content

Commit 6991f0c

Browse files
committed
fix: missing status causing error
1 parent dae729a commit 6991f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/InstructorAvailabilityService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function storeAvailability(array $availabilities): array
1717

1818
return DB::transaction(function () use ($availabilities) {
1919
$savedSlots = [];
20-
InstructorAvailability::where('instructor_id', auth()->id())->where(StatusEnum::AVAILABLE->value)->delete(); //delete old availability
20+
InstructorAvailability::where('instructor_id', auth()->id())->where('status', StatusEnum::AVAILABLE->value)->delete(); //delete old availability
2121
foreach ($availabilities as $slot) {
2222
$start = $slot['start_time'];
2323
$end = $slot['end_time'];

0 commit comments

Comments
 (0)