Laravel Vapor - typo fix + commented unnecessary code

This commit is contained in:
Dillon Ngo
2024-05-21 11:10:21 +08:00
parent 922da91e2c
commit c202f1bbc2
2 changed files with 8 additions and 8 deletions
@@ -60,15 +60,15 @@ class EmailDoToVTV2CommandJob implements ShouldQueue
$zip->close();
//STEP 2: Upload the zip file to S3
$filePathForS3 = 'collections/'.$zip_file;
Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment));
// $filePathForS3 = 'temp/'.$zip_file;
// Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment));
Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings));
// Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings));
$temporaryUrl = Storage::disk('s3')->temporaryUrl(
$filePathForS3,
Carbon::now()->addMinutes(10)
);
// $temporaryUrl = Storage::disk('s3')->temporaryUrl(
// $filePathForS3,
// Carbon::now()->addMinutes(10)
// );
//STEP 3: Send Email
Mail::raw( "Attention to VT Admin team:\r\n\r\nKindly refer to the attachment for our DAILY DO COMPILATION ".$startDate->format('d-m-Y')." - ".$endDate->format('d-m-Y').".\r\n\r\n**This is an automatically generated email please do not reply to it. If you have any queries kindly contact our admin team through Wechat.\r\n\r\n\r\nCIEF WORLDWIDE SDN BHD", function($message) use ($attachment, $startDate, $endDate){
@@ -80,7 +80,7 @@ class DownloadBookingDocumentLogic
}
$zip->close();
$filePathForS3 = 'collections/'.$zip_file;
$filePathForS3 = 'documents/collections/'.$zip_file;
Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment));
Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings));