Added logic for pdf shown in mail
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
This commit is contained in:
@@ -185,7 +185,29 @@ class RequestCharacteristicResource extends Resource
|
||||
}
|
||||
|
||||
// Build filename
|
||||
$fileName = "{$workFlowId}.png";
|
||||
// $fileName = "{$workFlowId}.png";
|
||||
|
||||
// $imageUrl = route('workflow.image', [
|
||||
// 'filename' => $fileName,
|
||||
// ]);
|
||||
|
||||
// $set('validation1_image_url', $imageUrl);
|
||||
|
||||
$files = glob(storage_path("app/private/uploads/LaserDocs/{$workFlowId}.*"));
|
||||
|
||||
if (empty($files)) {
|
||||
$set('validation1_image_url', null);
|
||||
|
||||
Notification::make()
|
||||
->title('Validation File Not Found')
|
||||
->body("No validation image or PDF found for Workflow ID: {$workFlowId}")
|
||||
->warning()
|
||||
->send();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$fileName = basename($files[0]);
|
||||
|
||||
$imageUrl = route('workflow.image', [
|
||||
'filename' => $fileName,
|
||||
|
||||
Reference in New Issue
Block a user