Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development

This commit is contained in:
Dillon Ngo
2024-06-20 15:04:02 +08:00
2 changed files with 2 additions and 2 deletions
@@ -62,7 +62,7 @@ class DownloadMockUpWhiteFormPdfLogic
$filesystemDriver = Storage::getDefaultDriver();
if($filesystemDriver === 's3'){
$pdfContent = $pdf->output();
AWSS3Helper::S3PDF($exportFileName, $pdfContent);
return response([ 'src' => AWSS3Helper::S3PDF($exportFileName, $pdfContent) ]);
}
else{
return $pdf->stream($exportFileName);
@@ -52,7 +52,7 @@ class GenerateCreditNotePdfLogic
$filesystemDriver = Storage::getDefaultDriver();
if($filesystemDriver === 's3'){
$pdfContent = $pdf->output();
AWSS3Helper::S3PDF($exportFileName, $pdfContent);
return response([ 'src' => AWSS3Helper::S3PDF($exportFileName, $pdfContent) ]);
}
else{
return $pdf->stream($exportFileName);