Skip to content

Commit a41a6ae

Browse files
committed
fix: removed finally block from job
1 parent e077c56 commit a41a6ae

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

app/Jobs/CollectIssues.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public function handle(): void
5454
}
5555
} catch (Exception $e) {
5656
Log::error('Error while collecting issues: ' . $e->getMessage());
57-
} finally {
58-
Cache::forget($cacheKey);
5957
}
6058
}
6159
}

app/Jobs/CreateMonitor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public function handle(): void
5555
$this->collect_vulnerabilities($this->monitor);
5656
} catch (Exception $e) {
5757
Log::error("Error processing monitor: " . $e->getMessage());
58-
} finally {
59-
Cache::forget($cacheKey);
6058
}
6159
}
6260
}

resources/views/livewire/monitors/show.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function mount(Monitor $monitor)
1616
CreateMonitor::dispatch($monitor);
1717
}
1818
19+
1920
public function open_pdf()
2021
{
2122

0 commit comments

Comments
 (0)