Skip to content

Commit

Permalink
Do not delete printed documents
Browse files Browse the repository at this point in the history
  • Loading branch information
BertalanD committed Dec 30, 2024
1 parent ad37858 commit 364ec32
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ public function store(Request $request)
Log::error("Error while creating print job: " . $e->getMessage());
return back()->with('error', __('print.error_printing'));
} finally {
Storage::disk('printing')->delete($path);
/*
* Let's keep around the documents for easier troubleshooting
* TODO: clean up after an interval (e.g. 7 days)
*/
// Storage::disk('printing')->delete($path);
}

DB::commit();
Expand Down

0 comments on commit 364ec32

Please sign in to comment.