Skip to content

Commit

Permalink
made migration more failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-staab committed Jan 17, 2025
1 parent a534aca commit 020b9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/LegacyMigrateFilesToStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function handle()
$link = $fileInfo->link;
$beleg = ExpensesReceipt::find($link);
$expenses_id = $beleg?->auslagen_id;
$pdfData = $data->data;
$pdfData = $data?->data;
$hash = $fileInfo->hashname;
$path = "auslagen/$expenses_id/$hash.pdf";
if ($pdfData !== null) {
Expand Down

0 comments on commit 020b9a7

Please sign in to comment.