mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-20 21:13:59 +00:00
Laravel Vapor - typo fix + commented unnecessary code
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user